已被采纳. f = codecs.open('ufile.log', 'w', 'utf_8_sig'). 参见: 7.8.6. encodings.utf_8_sig — UTF-8 codec with BOM signature.
確定! 回上一頁