def decode(self, encoding=None, errors=None): """ 解码 """ """ S.decode([encoding[,errors]]) -> object Decodes S using the codec registered for encoding. encoding defaults to the default encoding. errors may b…
#!/usr/bin/env python # -*- coding:utf-8 -*- #Author:ersa ''' #f,文件句柄;模式 a : append 追加文件内容 f = open("yesterday2",'a',encoding="utf-8") f.write("\nWhen i was yount i listen to the radio\n") f.write("I love Beijing Tiananm…