Python中,下列程序的运行结果是().
>>>s = “hello world"
>>> "{:^20}".format(s)
>>>s = “hello world"
>>> "{:^20}".format(s)
举一反三
- 下列程序的运行结果是 >>> s = ‘PYTHON’ >>> “{0:3}”.format(s)
- 下列程序的运行结果是 >;>;>; s = ‘PYTHON’ >;>;>; “{0:3}”.format(s) A: ‘PYTH’ B: ‘PYTHON’ C: ‘ PYTHON’ D: ‘PYT’
- 下列程序的运行结果是( )s = "Python""{0:3}".format(s) A: 'Pyth' B: 'Pyt' C: 'Python' D: ' thon'
- 以下程序段的输出结果是 。Char s[ ]=”Hello World!”;Strlwr(s);Printf(“%s”,s); A: hello world! B: HELLO world! C: hello WORLD! D: HELLO WORLD!
- 下面程序段的输出结果是_______。for s in "Hello, World!": if s==",": break print(s,end="") A: Hello, B: Hello,World! C: , D: Hello