这是我的。我得到'])'的语法错误,我不明白为什么?pyrss2gen,语法错误
import datetime
import PyRSS2Gen
jp = "Mokuyoubi"
en = "Thursday"
rss = PyRSS2Gen.RSS2(
title = "Vocab of the Day - JapLearn.com",
link = "http://www.JapLearn.com",
description = "The latest JapLearn.com"
"Vocab of the Day!",
lastBuildDate = datetime.datetime.utcnow(),
items = [
PyRSS2Gen.RSSItem(
title = "Vocab of the Day - Date",
link = "http://www.JapLearn.com",
description = " Japanese: "+jp+
"Translation: "+en,
pubDate = datetime.datetime()
])
rss.write_xml(open("japlearn-votd.xml", "w"))
@abkai ..对于rss ='语句缺少相应的')'没有问题吗? – Levon