结合上图,请完成下列填空。
a=input("请你输入一个数字:")
b=input("请你输入一个数字:")
c=input("请你输入一个数字:")
if a<b:
a=b
if a<c:
a=c
print(a) *
图1 |
图2 |
在VB中有三种程序结构,其中的分支结构中有一种多分支结构,可以针对多种情况进行编程。在编写移动的坦克游戏中,其中有这一段代码
1 Private Sub Picture1_KeyDown(KeyCode As Integer, Shift As Integer) 2 Select Case KeyCode 3 Case 37 4 Image1.Picture = LoadPicure(App.Path& "\pic\tank1.jpg") 5 If Image1.Left - 20 < 0 Then 6 Image1.Left=0 7 Else 8 Image1.Left= Image1.Left-20 9 End If |