青少年软件编程(python五级)等级考试试卷-客观题(2024年3月)
[100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200]
[100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 200]
[100, 111, 122, 133, 144, 155, 166, 177, 188, 199]
[199, 188, 177, 166, 155, 144, 133, 122, 111, 100]
错误,代码无法运行
打印出一个梯形状的星星
打印出一个倒立的三角形
打印出一个正立的三角形
{1, 3, 5}
{2, 4, 6}
{1,2,3,4,5,6,1,3,5,7,9}
[1, 3, 5]
{6,5,4,3,2}
{1,2,3,4,5}
{1,2,3,4,5}
[2,3,4,5,6]
list()
max()
min()
sum()
ans=math.pow(10,n)
ans=math.comb(n,2)
ans=math.factorial(n)
ans=math.pow(2,n)
jieba.add_word(w)向分词词典中增加新词 w
jieba.lcut(s)返回的可能是一个字符串类型
jieba.cut(s)返回的可能是一个可迭代的数据类型
jieba 库的分词原理是利用中文词库,将待处理的内容与词库比对后找到最大概率的词组
random.uniform(0,3)
random.randint(0,2)
random.sample(2,1)
random.seed()
wordcloud.WordCloud(font_step=5)
wordcloud.WordCloud(width=1600,height=800)
wordcloud.WordCloud(max_words=20)
wordcloud.WordCloud(min_font_size=10)
my_dict.add(key, value)
my_dict[key] = value
my_dict.append(key, value)
my_dict.insert(key, value)
my_dict.remove(key)
del my_dict[key]
my_dict.clear(key)
my_dict.delete(key)
3.1415926
003.14
3.1415
003.141
6
8
3
7
\\x68
68
x68
h
python@*
python*
*@python@*
* python*
ring
pring
eason
easo
[11,22,33,44,55]
[11,22,22,33,55]
[11,22,44,33,55]
[11,33,33,44,55]
[3,4,5,6]
[1,2,3,4,2]
[1,2,2,3,4]
[2,1,2,3,4]
['p','h','p','P','y','t','h','o','n']
['p','P','y','t','h','o','n']
['p','h','P','y','t','h','o','n']
['P','y','t','h','o','n']
[4,4,8,10,8]
[8,8,2,4,2]
[2,5,6,8,4]
[2,4,6,8,10]
python 二级
python 三级
python 四级
python 五级
print([i for i in range(1949,2025)if i %4==0 and i0!=0])
print([i for i in range(1949,2025)if i %4!=0 and i0!=0])
print([for i in range(1949,2025)if i %4==0 and i0=0])
print([for i in range(1949,2025)if i %4!=0 and i0=0])
发表评论 取消回复