import requests
import re
def url_is_correct():
try:
url = input("Please input the target test url:")
requests.get(url)
return url
except:
print('please input the correct url!!!')
#url = input("Please input the target test url:")
return url_is_correct()
a
Python入门:请重新输入并获取最新的一次输入的内容
