python中数字转换成字符串

数字转换成字符串:

     num=123

     str='%d' %num

     str就变成了"123"

原文地址:https://www.cnblogs.com/sword-/p/8038454.html