执行以下程序,结果为:s='hello!'for i in s: print(i, end=" , ")
A: hello!
B: hello!
C: he
D: hel
A: hello!
B: hello!
C: he
D: hel
举一反三
- 执行下列程序的输出结果是()s="Hello,world"print(s[0:2]) A: Hel B: Hell C: He D: Hello
- 下面程序段的输出结果是_______。for s in "Hello, World!": if s==",": break print(s,end="") A: Hello, B: Hello,World! C: , D: Hello
- 要输出“Hello,World!”,以下_____语句段是错误的。 A: print("Hello,",end="")print('World!') B: print("Hello,World!") C: print("Hello,";end="")print('World!') D: print("Hello",end=",")print('World!')
- 下面程序循环次数为: s='hello' i=0 whileiprint(s[i],end=',') i+=1[/i] A: 3 B: 4 C: 5 D: 6
- 语句Print Format("HELLO", " A、HELLO: HELLO|He|he|hello