摘要:
def generator(): for i in range(10): yield iret = generator()print(ret.__next__())print(ret.__next__())print(ret.__next__()) 加上yield就变成生成器函数了,返回值是yiel 阅读全文
摘要:
At first, you should install Django module: This may not work: pip3 install Django You should try the code below: sudo python3 -m pip install django - 阅读全文