题目内容

>>>s=”PYTHON” >>>”{0:30}”.format()的输出格式为( )

A. ’PYTHON’
B. ’ PYTHON’
C. ’***PYTHON*** ’
D. ’PYTHON ’

查看答案
更多问题

利用math库运行math.floor(2.5),运行结果为( )

A. 2
B. 3
C. 2.5
D. 1

>>>print(“爱\t生活\t爱\tPython”)的输出结果为( )

A. 爱生活爱Python
B. 爱 生活 爱 Python
C. 爱\t生活\t爱\tPython
D. 爱 生活 爱 Python

>>>hex(255) >>>oct(-255)各自的输出结果为( )

A. ‘255’‘-255’
B. ’ff’ ‘377’
C. ’0xff’
D. ’-0o377

下列表达式错误的是( )

A. ’abcd’
B. ’abc’
C. ”
D. ’Hello’>’hello’

答案查题题库