jjzjj

python - markup.py 如何在标签中使用 ':'

代码:importmarkupurl_=('href1.com','href2.com')mycxml=markup.page(mode='xml',case='given')mycxml.init(encoding='utf-8')mycxml.Collection.open()mycxml.Items(url_)mycxml.collection.close()printmycxml输出:href1.comhref2.com我想要一行而不是,但是:不让我编译它。我怎样才能“逃脱”它? 最佳答案 我不知道markup.py是否有内