1
wxq552 OP 这是我的HelloWorld代码
#encoding: utf-8 import web urls = ("/.*", "hello") app = web.application(urls, globals()) class hello: def GET(self): return 'Hello, world!' if __name__ == "__main__": app.run() |
2
allenforrest 2014 年 7 月 15 日
声明的是 utf-8,但实际保存的 py 文件编码不是 utf-8的,检查你的编辑器
|
3
tonyluj 2014 年 7 月 15 日
用notepad++,utf-8编码
editor用vim吧,早用早幸福 |
4
BiggerLonger 2014 年 7 月 15 日
'Hello world'.decode('utf-8') 试试
|