number = int(input("请输入数字:"))
count = 1
while number // 10**count > 0:
count =count +1
else:
print("这是一个 %s 位数!" % count)
判断一个数是几位数
猜你喜欢
转载自www.cnblogs.com/hadibingjing/p/10929060.html
今日推荐
周排行