代码:
def funt():
print(Fore.GREEN, end='')
tool = input('Enter Desired Tool: ')
if tool == 'web':
try:
print(Fore.CYAN, end='')
site = input('Please Enter The Website Here: ')
response = requests.get(site)
requests.get(site)
if response.status_code == 200:
print(f'{Fore.GREEN}Online!')
sleep(1)
else:
print(f'{Fore.RED}Offline!')
sleep(1)
while True:
funt()
错误的位置是while True:。错误如下:
while True:
^
IndentationError: unexpected unindent
我找不到解决方案,while 循环中没有任何缩进迹象。
斯蒂芬大帝
Helenr
一只甜甜圈
相关分类