使用python 中的join函数, 即可实现
example
In [77]: test = "12344345345"In [78]: testOut[78]: '12344345345'In [79]: result = " ".join(test)In [80]: resultOut[80]: '1 2 3 4 4 3 4 5 3 4 5'
时间:2021-03-11 08:31:16
使用python 中的join函数, 即可实现
In [77]: test = "12344345345"In [78]: testOut[78]: '12344345345'In [79]: result = " ".join(test)In [80]: resultOut[80]: '1 2 3 4 4 3 4 5 3 4 5'
python输出用逗号隔开的数字_Python:从字符串中提取带有点和逗号的数字
2023-08-22
python字符串补空格输出_python实现指定字符串补全空格 前面填充0的方法
2019-10-20