python其他注意事项-0323

各种数据类型之间的转换
1、将各种类型转化为字符串: str()
2、将列表转化为字符串: ''.join()
3、将各种类型转化为列表: len()
4、将各种类型转化为字典: dict()
5、将各种类型转化为int:int()
原文地址:https://www.cnblogs.com/txbbkk/p/9287023.html