Python程序采用Unicode编码,英文字符和中文字符在Python中分别对应字符长度分别是多少( )
A. 2和1
B. 2和2
C. 1和1
D. 1和2
查看答案
函数pow(2,pow(2,2),6)输出结果()
A. 16
B. 1
C. 8
D. 4
以下哪个方法能够根据','切分字符串( )
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)