第1个回答 2019-07-13
python:
n = eval(input("输入一个1~7之间的数字:"))
n = n-1
a=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]
print(a[n])
第2个回答 2008-12-10
'新建一个 text1 和一个 text2
Private Sub Text1_Change()
Select Case Text1.Text
Case Is = 1
Text2.Text = "星期一"
Case Is = 2
Text2.Text = "星期二"
Case Is = 3
Text2.Text = "星期三"
Case Is = 4
Text2.Text = "星期四"
Case Is = 5
Text2.Text = "星期五"
Case Is = 6
Text2.Text = "星期六"
Case Is = 7
Text2.Text = "星期日"
Case Else
Text2.Text = ""
End Select
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
Text1.Text = ""
End Sub本回答被网友采纳