生成器与文档结合
def population():ret = []with open('test.py', 'r', encoding='utf-8') as f:for i in f:ret.append()return retg = population()
print(g._next_())
?
轉載于:https://www.cnblogs.com/wfl9310/p/8987476.html
總結
- 上一篇: 安装和使用Redis【转】
- 下一篇: 5-4日 socket套接字