python 追踪函数调用

from flask import Flask
import traceback
app = Flask(__name__)
 
 
@app.route('/')
def hello_world():
    traceback.print_stack()
    return 'Hello World!'
 
 
if __name__ == '__main__':
    app.run()

 

posted @ 2020-04-04 22:56  秋华  阅读(776)  评论(0编辑  收藏  举报