Python異常:TypeError: a bytes-like object is required, not 'str'

Python異常:TypeError: a bytes-like object is required, not ‘str’ import json str = [{"userName" : "UserPython", "age" : 20}, (2, 3), 1] with open("jsonTest.txt", "wb") as fp: json.dump(str, fp = f
相關文章
相關標籤/搜索