A、 Python 中的 for 语句可以在任意序列上进行迭代访问,例如列表、字符串和元组
B、 循环可以嵌套使用,例如一个 for 语句中有另-个 for 语句,一个 while 语句中有一个 for 语句等
C、 在 Python 中没有 switch-case 的关键词,可以用 if...elif...elif...来等价表达
D、 在 Python 中 if...elif...elif...结构中必须包含 else 子句
答案:D
A、 Python 中的 for 语句可以在任意序列上进行迭代访问,例如列表、字符串和元组
B、 循环可以嵌套使用,例如一个 for 语句中有另-个 for 语句,一个 while 语句中有一个 for 语句等
C、 在 Python 中没有 switch-case 的关键词,可以用 if...elif...elif...来等价表达
D、 在 Python 中 if...elif...elif...结构中必须包含 else 子句
答案:D
A. clear()
B. close()
C. delete()
D. deleteAll()
A. 0,1,
B. 0,1
C. 0,1,2
D. 0,1,2,
A. s.title()
B. s.isupper()
C. s.upper()
D. s.capitalize()
A. 'Hello World'
B. Hemlo World'’
C. 'Hello Wormd
D. 'Hemmo Wormd
A. 10月26日
B. 15//4
C. 3+1.0
D. 12/3