您可以使用:
for t in some_list: f.write(' '.join(str(s) for s in t) + 'n')
f
file
上一篇 argparse和unittest python
下一篇 像在滑动窗口中一样遍历列表[重复]
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号