我有一个main.py
文件。当我执行此操作时,它会给我以下错误。有没有人对这个问题有任何线索?提前谢谢。
main.py
urls = ("/poems(.*)", "poem.Poems")
app = web.application( urls, globals() )
if __name__ == "__main__":
app.run()
错误消息:
Traceback (most recent call last):
File "memory.py", line 24, in <module>
app = web.application( urls, globals() )
File "/lib/python2.7/site-packages/web.py-0.40.dev0- py2.7.egg/web/application.py", line 62, in __init__
self.init_mapping(mapping)
File "/lib/python2.7/site-packages/web.py-0.40.dev0-py2.7.egg/web/application.py", line 130, in init_mapping
self.mapping = list(utils.group(mapping, 2))
File "/lib/python2.7/site-packages/web.py-0.40.dev0-py2.7.egg/web/utils.py", line 529, in group
seq = iter(seq)
TypeError: 'module' object is not iterable