题目内容

以下代码的输出结果是__________。print('{:0<10.2f}'.format(1234.5678))

A. 1234.57
B. 1234.57000
C. 0001234.57
D. 1234.567800

查看答案
更多问题

以下代码的输出结果是__________。print('{0:*^10x},{0:#>10o}'.format(27))

A. ****1B****,
B. 33
C. ****1B****,
D. 27
E. ****1b****,
F. 33
G. ****1b****,
H. 27

以下代码的输出结果是__________。print('{:\\^10b}'.format(10))

A. 出错
B. 1010
C. \\\\10\\\\
D. \\\1010\\\

以下代码的输出结果是__________。print('{:->8.4}'.format('python程序设计'))

A. ----pyth
B. pyth
C. python程序
D. python程序设计

设str1='python*',语句print(str1.strip())的执行结果是__________。

A. python*
B. python*
C. python*
D. python*

答案查题题库