1.数字转字符串

i = 123

str = ‘%d’ %i

str即为转换成的字符串

2.字符串转换成数字:

import string 

tt='555'

ts=string.atoi(tt)

ts即为tt转换成的数字

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-07-02
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2022-01-07
  • 2022-02-11
  • 2022-12-23
  • 2021-08-21
  • 2022-02-08
  • 2021-12-22
  • 2021-10-28
相关资源
相似解决方案