📅  最后修改于: 2022-03-11 14:45:49.211000             🧑  作者: Mango
# method 1. in terminal
$uvicorn main:app --reload
# method 2. run with python code
import os
def run():
os.system('uvicorn main:app --reload')
if __name__ == '__main__':
run()