运维123 - 使用python实现获取公网IP地址 的评论
type: channel
link: https://www.sddts.cn/index.php/archives/792/
description: import requestsdef getPublicIP(): url = 'https://www.op123.ren/myip' try: response =...