A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
2024MÖÏ]MÐ7v×Pythonl?F?5k
5"9?27 9s?100
?45
? 1 5 ??5
l???q?H??C?q1p WindowsÌâƒñ1pKÅ¥^?
?T"d
9?=i
??!?
????
A
? 2 5 ??5
1?Python???E???^?
Python??^B?S:??
Python???15Ir??
Python}’Óq¥È¨ª ^.Py
?Python}??-?1 ??? ??
C
? 3 5 ??5
Python??? V[?0b 7hVU????3^B?=?Ŕ*? print(0b001100010 +0b001010011){?
?T^?
179
181
183
185
B
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
? 4 5 ??5
/1?pythonM??E???^?
Python?????M]??=ivl^%??
Python??M2??H??1 ??
a=a V[7yB?M a
ab =52 V[7y a,b ?M
D
? 5 5 ??5
Python ?VrT 5>4>2 ?|?^?
False
True
None
ÔEp
B
? 6 5 ??5
/Python}?{=?^?
n= 7/4
print(int(n))
1
2
1.0
0
A
? 7 5 ??5
/Python}??{?T^?
a,n=100,50
n,a=a, n
a=a+n
print(n, a)
100 150
150 100
100 200
200 100
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A
? 8 5 ??5
/Python®´Ô p¥^?
x=(12)*3
x=[12]*3
x="12”*3
x={12}*3
D
? 9 5 ??5
?3? data ={'1':2,'3':4,'5':6}??'3':4 o??'3':3 ????T^?
data[3]= 3
data["3"]= 3
data['3'] = '3'
data[3]='3'
B
? 10 5 ??5
7yB?c?????E??M??ʔ?V?? ^ ?
[x for x in range(9,99)if x% 10 != x // 10]
[x if x%10==x// 10 for xin range(10,100)]
[x for xin range(10,100)if x% 10 !=x // 10]
[x+y for xin range(l,10)for y in range(1,10)if x != y]
C
? 11 5 ??5
X1pºcžœ”¥VL??=v?????LA??
L=[3,5,1,4,7,6,9]
a,b=-1,-1
for x in L:
if x > a:
_____
elif x> b:
b=x
print(b)
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
! s?
A.
B.
C.
D.
a, b= b,x
a=x
a, b=x,a
b=x
C
? 12 5 ??5
X1p3˜1S????l3???????T???LA? ?
S="MyWorldforLower"
2024年粤港澳青少年信息学创新大赛Python小学组真题试卷-附答案