无
*注意事项:
a,b=[0]*10,[False]*10
i=0
while i<=9:
if not b[r]:
a[i]=r
i=i+1
print(a)
则划线处的代码依次是( )
① r=random.randint(0,10)
② b[r]=True
③import random
④ b[i]=True
⑤from random import randint
⑥ r=random.randint(0,9)
x=2
print(x+1)
Print(x+2)
a=a+b
b=a+b
>>> list1=[a,3,b,10]
>>> del list1[1:3]
>>> print(list1)
li = map(int, input(). split())
cnt=0
for i in li:
if :
cnt+=1
print("奇数有{}个。". format(cnt))
x,y = 1,2
x, y = y,x
print(x,y)
a=[10,20,30,40,50,60,70,80,90]
j = i = 1
i+= j + j * 5
print(a[i]+a[j])
a="student"
b=a[-2:-5:-1]
print(b)
pwd= {" Name" : "User", "Password" :"@YueKao108"}
pwd["Name* ]=" Administrator"
print(pwd["Name"][:4])
微信扫码预览、分享更方便
详情