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
相关文章
相关标签/搜索