【发布时间】:2019-08-16 11:53:58
【问题描述】:
您将无法运行该脚本,遗憾的是我不知道为什么。 这是关于 EOL 的,但我不太喜欢 python,所以我需要你的帮助, 我尝试了不同的东西,但没有奏效。另外,我的朋友实际上是 phyton 尝试并失败了。
这只是一个菜单代码,用于在我想检查我的计算机时运行多个防病毒软件
import sys, string, os, arcgisscripting
def menu():
print ("Welcome To S1MPL3 MENU, an simple made antivirus for open Wi-Fi and Computer Repair.\n 1. Easy File Check \n 2.Total Time Security \n 3.Suspicius Ip Check")
choice = input()
if choice == "1":
print("Checking Files ... (The process wont take long !")
os.chdir 'C:\Users\alexa\Desktop\Core_Files\Projects\S1mpl3 Antivirus\Check\Files\File_Check.vbs\
menu()
if choice == "2":
print("TTS Chosen!")
os.chdir 'C:\Users\alexa\Desktop\Projects\S1mpl3_Antivirus\Check\\Files\Ip_Check\'
menu()
if choice == "3":
print("Checking For Suspicius Ip in your Home Wi-Fi")
os.chdir 'C:\Users\alexa\Desktop\Core_Files\Projects\S1mpl3 Antivirus\Check\Files\Ip_Check\'
menu()
menu()
错误应该在选择2的S1m中
错误:扫描字符串文字时出现语法错误 EOL
【问题讨论】: