获取公网IP 1 import requests 2 import re 3 res = requests.get("https://myip.ipip.net",timeout=5).text 4 ip = re.findall(r'(\d+\.\d+\.\d+\.\d+)', res)[0] 5 Read More
posted @ 2023-08-07 14:34 菜鸟要飞~ Views(253) Comments(0) Diggs(0) Edit