我正在尝试使用以下代码启动 web.py 服务器:
if __name__ == "__main__":
p = Process(target=app.run) #starts the web.py server
p.start()
main() #starts a main listening loop for errors, testing and logging
p.join()
在哪里
app = web.application(urls, globals()) #part of the web.py framework... starts the REST server
但我得到了这个例外:
Traceback (most recent call last):
File "apitest.py", line 90, in <module>
p = Process(target=app.run)
TypeError: this constructor takes no arguments
我在任何地方都用谷歌搜索过,但我找不到发生了什么……有人可以帮忙吗?
谢谢!