标签:mod odi 数据 span utf-8 class with open nbsp write
join用的不错
a = "Hello, world" b = "你好,世界" c = "How are you?" with open(file=‘a.txt‘, mode=‘w‘, encoding=‘utf-8‘) as f: f.write(‘\n‘.join([a, b, c])) f.write(‘\n‘ + ‘=‘ * 30)
标签:mod odi 数据 span utf-8 class with open nbsp write
原文地址:https://www.cnblogs.com/wt7018/p/11899484.html