以下语法是否关闭该文件:
lines = [line.strip() for line in open('/somefile/somewhere')]
如果你可以证明它是做什么或不做的话,可以获得奖励积分......
TIA!
python
python ×1