我试图把我的外部IP放在一个标签中,所以我正在下载基于网站的结果,但是当我通过VPN更改我的IP时,应用程序崩溃了,我相信这是因为它不检查if它试图让绳子掉下来。 在窗体加载... If Label1.Text = LastIp Then
Try
Dim wc As New WebClient
Label1.Text = wc.DownloadString(
对于第三个elif,我试图让它检测'Numb'中是否有任何特殊字符,并且是否有重复的while循环。 我一直在使用re.match与进口重新尝试,但它似乎并不奏效 Numb = input('Enter the number you want to find the factorial of: ')
if Numb.isalpha() == True:
print ('You ca