请利用列表实现程序的功能,在划线处将程序补充完整。
mc=(input (“请输入运动会项目名词(1~6):”)) #输入名次,转化为整型
1st=[7,5,4,3,2,1] #定义一个得分列表
if mc>=1 and mc<=6 : #名次在1-6名之间,索引位置
df= #根据索引取列表中相应的成绩
print(“项目得分为:”, )
else:
print(“输入的名次不在[1~6]范围!”)
x=10
if x>=10:
Value=3*x
else:
Value=5*X+ 10
Private Sub command1_Click()
Dim n As Integer, i As Integer, s As Double
n = 100
s = 0
For i = 1 To n
Next i
Print s
End Sub
|
G=int(input(‘请输入原始成绩:’)) If print(‘Great’) elif G<85 and G>=70: print(‘Good’)
print(‘Medium’) else: print(‘Bad’) |
s=0
for i=1 to 5
s=s+i
next i
执行后,s的值为( )。

请把以下选项填在对应的序号处①、②、③
A.暴雨红色预警信号是否生效
B.正常回校上课
C.学生停课在家自主学习
a=3
b=5
if a==b:
print(b)
else:
print(a)
x=0
a=8
if a<9:
x=9
print (x)
m=int(input("请输入一个整数:"))
if ⑴:
print("这个数字是奇数")
⑵:
print("这个数字是偶数")
⑴A.m/2=0 B.m//2==0 C.m%2=0 D.m%2==1
⑵A.if B.else C.elif D.break
target="123"
while ⑴:
password=input('请输入密码:')
if ⑵:
print('密码正确')
break
else:
print('密码错误,)
print('成功登陆')
⑴A.True B.False C.Break D.Stop
⑵A.password=target B.password==target C.password>=target D.password!=target
a=int(input("请输入你的年龄: "))
if a<=3:
print("没到买票年龄")
elif a>=4 and a<12:
print("请购买儿童票")
else:
print("请购买全价票")
Private Sub Command1_ Click()
a=Text2. Text '总评分
If a <75 Then
Label4. Caption ="★ 继续努力!"
Else
If a>90 Then
Label4. Caption ="★★★ 很棒!"
Else
Label4. Caption = "★★ 加油!"
End If
End If
End Sub
a=100
b=200
_______________
print(a,"+",b,"=",c)
Num1=11
Num2=29
Sum=Num1+Num2
print(Num1,"+",Num2,"=",Sum)
Num=123
temp1=Num%10
temp2=Num%100
print(temp1,temp2)
If(a>b)Then
Print a '如果a>b,输出变量a的值
Else
Print b '否则,输出变量 b的值
End If '结束If分支