题目内容

将以下代码li = ['alex','eric','rain']s = "_".join(li)print(s)保存成Python文件,运行后输出结果为( )。

A. _alex_eric_rain_
B. _alex_eric_rain
C. alex_eric_rain_
D. alex_eric_rain

查看答案
更多问题

下列代码的输出结果是( )。li = ["hello",'se',[["m","n"],["h","kelly"],'all'],123,446]print(li[2][1][1])

A. h
B. kelly
C. n
D. m

下列数据中不属于列表的是( )。

A. {23,45,56,78}
B. [23,45,5.6,7.8]
C. [23,45,"Info",'a']
D. ["A","B","C","D"]

下列数据中属于列表的是( )。

A. (198,"Python",18.5,-5.6)
B. 198,"Python",18.5,-5.6
C. {198,"Python",18.5,-5.6}
D. [198,"Python",18.5,-5.6]

Model: To get up early is a good habit.

答案查题题库