小工具知识网

当前位置: 首页 > 行业知识 > 使用python获取电脑的公网 IP

行业知识

使用python获取电脑的公网 IP

2026-11-10 23:39:09 来源:互联网转载

python 代���:

from requests import getip = get('https://api.myip.la').textprint('My public IP address is: {}'.format(ip))

输出结果:

上一篇:oa服务器地址怎么填?

下一篇:YOLO v5与YOLO v8框图比较