首页
编程
java
php
前端
首页
编程
java
php
前端
将整数装换成字符,计算字符的长度 哪里出了问题
x
=
str
(
n
)
print
(
len
(
x
))
直接使用len()即可计算出字符串长度。
while里面把x换成n
你x是个字符串,n才是你的数字
点击展开全文