repr()和str()
python3吧
全部回复
仅看楼主
level 9
恶笑话
楼主
repr() 以便于开发者理解的方式返回对象的字符串表示形式。
str() 以便于用户理解的方式返回对象的字符串表示形式。
2021年08月05日 12点08分
1
level 9
恶笑话
楼主
这个对比最简洁
2021年08月05日 12点08分
2
1