使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
以下语句的执行结果是( )
import copy
list1 = [2,4,[6,8,10]]
list2 = copy.deepcopy(list1)
list2[2][1]= 9
print(list2)
dict1=dict(name='zhang',sex='femal')
dict1.popitem()
以下程序的输出结果是( )
frame = [[1,2,3],[4,5,6],[7,8,9]]
rgb = frame[::-1]
print(rgb)
下面代码的执行结果是( ) x=[1,2,1,1,1,2]
for i in x:
if i==1:
x.remove(i)
print(x)
for i in reversed(range(10, 0, -2)):
print(i,end=" ")
for i in "the number changes":
if i == 'n'
break
else:
print( i, end= "")
for i in range(3):
for s in "abcd":
if s=="c":
print(s,end="")
x= 10
while x:
x -= 1
if not x%2:
print(x,end = '')
else:
s=ls = [1,2,3,4]
for l in ls:
s += str(l)
print(s)
j = ""
for i in '12345':
j += i + ','
print(j)
a = 30
b = 1
if a >=10:
a = 20
elif a>=20:
elif a>=30:
b = a
b = 0
print('a={}, b={}'.format(a,b))
ls1 = [1,2,3,4,5]
ls2 = [3,4,5,6,7,8]
cha1 = []
for i in ls2:
if i not in ls1:
cha1.append(i)
print(cha1)
a = input("").split(",")
x = 0
while x < len(a):
print(a[x],end="")
x += 1
代码执行时,从键盘获得的输入为: “Python语言,是,脚本,语言” ,则代码的输出结果是(2.0分)