摘要:
"""生成器:边执行边运算 惰性运算:节省空间""" """python 2 会先生成这些数据 range()""" for i in range(1000): print(i) if i>100: break """while循环也是在运算过程中生成下一个值""" count=0 while co 阅读全文
摘要:
'''装饰器前奏'''account={ "is_authenticated":False , "username":"zxz", "password":"zxz123456"}def login(func): if account['is_authenticated'] is False: use 阅读全文