题目内容

使用()符号对字符串类型的数据进行格式化。

A. %c
B. %d
C. %f
D. %s

查看答案
更多问题

下列方法中,能够让整个字符串全部变成大写的方法是()。

A. capitalize
B. title
C. lower
D. upper

表达式'Helloworld'.lower()的值为____。

A. 'Helloworld'
B. 'HelloWorld'
C. 'HELLOWORLD'
D. 'helloworld'

表达式'Helloworld'.rstrip()的值为____。

A. 'Helloworld'
B. 'Helloworld'
C. 'Helloworld'
D. 'helloworld'

表达式"+".join(["12","34","56"])的值为____。

A. '12-34-56'
B. "12","34","56"
C. '12+34+56'
D. ["12","34","56"]

答案查题题库