import os def fileAppend(filename): myfile = open(filename,'a') myfile.write("####") myfile.close if __name__ == '__main__': filename = 'test.rmvb' fileAppend(filename) print(filename + ' is Changed.') 黄世宇/Shiyu Huang's Personal Page:
def fileAppend(filename):
myfile = open(filename,'a')
myfile.write("####&&&&")
myfile.close
if __name__ == '__main__':
filename = 'test.rmvb'
fileAppend(filename)
print(filename + ' is Changed.')
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/