str()

转换成字符串;

把数字转成字符串用str,str(被转数据)

把字符串转成int用int(被转数据)

str() 函数将对象转化为适于人阅读的形式。

 

posted @ 2019-11-11 11:46  daino  阅读(337)  评论(0编辑  收藏  举报