题目内容

math库是Python提供的______ 数学类函数库,math中的函数不能直接使用,需要使用import引用该库。

查看答案
更多问题

>>>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

答案查题题库