Pyhon 调试模块pysnooper用法演示

'''
Pyhon 调试模块pysnooper用法演示 by 郑瑞国
'''
import pysnooper

y = 0
@pysnooper.snoop()
def abc():
    global y
    for x in range(101):
        y = y+x
        print(y)
    print(y)

abc()

 

你可能感兴趣的:(Python,pysnooper,调试)