首页->Python语言基础
pandas里缺失数据的标记为
(A)NaN
(B)nan
(C)Nan
(D)null
参考答案
更多Python语言基础试题
- 1题目:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。
x = int(input("input a number:"))
a = x // 10000
________________
c = x % 1000 // 100
d = x % 100 // 10
e = x % 10
if a != 0:
print ("there are 5 ",e,d,c,b,a)
elif b != 0:
print ("there are 4 ",d,c,b,a)
elif c != 0:
print ("there are 3 ",e,d,c)
elif d != 0:
print ("there are 2 ",e,d)
else:
print ("there are 1",e)