下列代码输出的结果是( )x2=1for day in range(3,0,-1):x1=(x2+1)*2x2=x1print(x1)
查看答案
下列代码输出的结果是( )for s in "HelloWorld":if s=="W":continueprint(s,end="")
A. Helloorld
B. Hello
C. World
D. HelloWorld
以下语句不能完成1~10的累加求和的是( )
A. for i in range(11):sum+=i
B. for i in range(1,11):sum+=i
C. for i in range(10,0,-1):sum+=i
D. for i in range(10,9,8,7,6,5,4,3,2,1):sum+=i
下面代码的输出结果是___________m=5while m<10:n=2while n<=m-1:if m%n==0:breakif n==m-1:print(m,end="")n=n+1m=m+1
以下代码的输出结果是 _________。s=0for i in range(100):if i%10!=0:continues+=1print("sum={}".format(s))