python其他

各种数据类型之间的转换
1、将各种类型转化为字符串: str()
2、将列表转化为字符串: ''.join()
3、将各种类型转化为列表: len()
4、将各种类型转化为字典: dict()
5、将各种类型转化为int:int()

猜你喜欢

转载自www.cnblogs.com/txbbkk/p/9287023.html