下列程序段的输出结果是( )。A=0Print A+1A=3A.1B.-1C.3D.0
下列程序段的输出结果是( )。
A=0
Print A+1
A=3
A.1
B.-1
C.3
D.0
相关考题:
8、执行下列程序段,输出结果是_______。 a = 30 b = 1 if a >=10: a = 20 elif a>=20: a = 30 elif a>=30: b = a else: b = 0 print('a=%d, b=%d'%(a,b))A.a=20, b=1B.a=20, b=20C.a=30, b=30D.a=30, b=1
执行下列程序段,输出结果是_______。 a = 30 b = 1 if a >=10: a = 20 elif a>=20: a = 30 elif a>=30: b = a else: b = 0 print('a=%d, b=%d'%(a,b))A.a=20, b=1B.a=20, b=20C.a=30, b=30D.a=30, b=1