题目内容

以下哪个方法能够根据','切分字符串( )

A. s.strip()
B. s.replace()
C. s.center()
D. s.split()

查看答案
更多问题

s="Python"print("{:*^10}".format(s))的正确结果是()

A. Python**
B. **Python
C. Python
D. **Python**

要将 3.1415926 变成 00003.14输出, 如何进行格式化输出()

A. "{:08.2f}".format(3.1415629)
B. "{:0.2f}".format(3.1415629)
C. "{:.2f}".format(3.1415629)
D. "{:8.2f}".format(3.1415629)

print('\nPython')的运行结果为()

A. 直接输出:\nPython
B. 在新的一行输出: Python
C. 直接输出:'\nPython'
D. 先输出n,然后新的一行输出Python

下面代码的输出结果是 ()z = 12.34 + 34jprint(z.imag)

A. 12
B. 34.0
C. 34
D. 12.12

答案查题题库