A. n%2==0 B. n%2!=1 C. n/2==n//2 D. n/2!=n//2
A. xxxyyy B. xyxyxy C. xybxybxyb D. xxxyyybbb
A. xyzxyzxyz B. xxxyyyzzzaaa C. xyzaxyzaxyza D. xxxyyyzzz
A. s = 0x = input()while x!="ok":s += int(x)print(s) B. s = 0while True:x = input()if x=="ok":breaks += int(x)print(s) C. s = 0x = input()while x!="ok":s += int(x)x = input()print(s) D. s = 0while x!="ok":x = input()s += int(x)print(s)
A. import randomrandom.randint(3,9) B. range(3,9) C. import randomrandom.randint(3,10) D. import randomrandom.randrange(3,10)
A. a = int(input("输入一个10000以内的正整数:"))if 0<a<10:print(str(a)+"是1位数")elif a<100:print(str(a)+"是2位数")elif a<1000:print(str(a)+"是3位数")elif a<10000:print(str(a)+"是4位数")else:print("数据有误") B. a = input("输入一个10000以内的正整数:")if 0<a<10:print(a+"是1位数")elif a<100:print(a+"是2位数")elif a<1000:print(a+"是3位数")elif a<10000:print(a+"是4位数")else:print("数据有误") C. a = int(input("输入一个10000以内的正整数:"))if 0<a<10000:print(str(a)+"是"+str(len(str(a)))+"位数")else:print("数据有误") D. a = int(input("输入一个10000以内的正整数:"))if 1000<=a<10000:print(str(a)+"是4位数")elif a>=100:print(str(a)+"是3位数")elif a>=10:print(str(a)+"是2位数")elif a>0:print(str(a)+"是1位数")else:print("数据有误")