Python文件学习文章Python文件学习open函数还有诸如'r+','w+','rb','wb'等,分别表示可读可写,可读可写,可读二进制,可写二进制。fp = open(r'c:\io.txt','rb')