Decorator简介 Links: https://learn.microsoft.com/en-us/shows/intro-to-python-development/python-for-beginners-42-of-44-decorators def logger(func): def wrapper(): print('Starting logging the function...') func() print('Stop logging...') return wrapper @logger def sample(): print('--Running inside a decorator') sample() 基础的44节课全部看完啦,还有个做flask app的小项目,我要开始做做,然后开始看中级的那个!!