代码如下,但运行不了
import web
urls = (
'/', 'index'
)
app = web.application(urls, globals())
class index:
def GET(self):
greeting = "hi world"
return greeting
if __name__== "__main__":
app.run()
安装第三方模块 flask(小辣椒)
编写脚本 my_index.py
from flask import Flask