使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
li = ["hello", "se", [["m", "n"], ["h", "kelly"], "all"], 123, 446]
print(li[2][1][1])
表达式ls[2][-1][2]的结果是( )。
ls = [[0, 1], [5, 6], [7, 8]]
lis = []
for i in range(len(ls)):
lis.append(ls[i][1])
print(lis)
s = list(
"巴老爷有八十八棵芭蕉树,来了八十八个把式要在巴老爷八十八棵芭蕉树下住。老爷拔了八十八棵芭蕉树,不让八十八个把式在八十八棵芭蕉树下住。八十八个把式烧了八十八棵芭蕉树,巴老爷在八十八棵树边哭。"
)
以下选项中能输出s中字符个数的是
s = [4, 2, 9, 1]
s.insert(3, 3)
print(s)
a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
s = 0
for c in a:
for j in range(3):
s += c[j]
desserts = ["ice cream", "chocolate", "apple crisp", "cookies"]
favorite_dessert = "apple crisp"
for dessert in desserts:
if dessert == favorite_dessert:
print("%s is my favorite dessert!" % dessert.title())
(1.0)
a = [1, 3]
b = [2, 4]
a.extend(b)
print(a)
li = ["alex", "eric", "rain"]
s = "_".join(li)
s = ["seashell", "gold", "pink", "brown", "purple", "tomato"]
print(len(s), min(s), max(s))
ls = ["2020", "1903", "Python"]
ls.append(2050)
ls.append([2020, "2020"])
print(ls)
list1 = []
for i in range(1, 11):
list1.append(i**2)
print(list1)
lcat = ["狮子", "猎豹", "虎猫", "花豹", "孟加拉虎", "美洲豹", "雪豹"]
for s in lcat:
if "豹" in s:
print(s, end="")
continue
L = [1, 2, 3, 4, 5]
s1 = ",".join(str(n) for n in L)
print(s1)
CLis = list(range(5))
print(5 in CLis)
ls = ["book", 666, [2018, "python", 314], 20]
print(ls[2][1][-2])