python -c

BOYE / 2023-05-29 / 原文

#输出公网ip
python3 -c "import requests;print(requests.get('http://jsonip.com/').json().get('ip'))"

 20.23.45.23