这就是我所拥有的。我收到'])'的语法错误,我不明白为什么?
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"))