答案 0 :(得分:0)
它说你的框架不见了。您可能只需要删除并重新导入框架。
答案 1 :(得分:0)
def gen(filename):
with open(filename) as sample:
for line in sample:
line = line.rstrip()
for ch in line:
yield ch
def filled_filename(text):
with open('test.txt', 'wb') as f:
f.write(text)
return 'test.txt'
filename = filled_filename(b'ABCDEF')
assert list(gen(filename)) == ['A', 'B', 'C', 'D', 'E', 'F']
答案 2 :(得分:0)
我通过简单地运行终端并再次安装pod来解决它。