ValueError: must have exactly one of create/read/write/append mode

行是知之始,知是行之成。这篇文章主要讲述ValueError: must have exactly one of create/read/write/append mode相关的知识,希望能为你提供帮助。
【ValueError: must have exactly one of create/read/write/append mode】ValueError: must have exactly one of create/read/write/append mode
 
fo = open(‘runoob.txt‘, ‘rw+‘)
python 中文件打开操作的mode中没有“ rw”
合法的mode有:
r、rb、r+、rb+、w、wb、w+、wb+、a、ab、a+、ab+





    推荐阅读