查看公网IP

1 #!/usr/bin/python
2 # -*- coding:utf-8 -*-
3 import os
4 
5 print "查看公网IP:"
6 os.system('curl icanhazip.com')

 

posted @ 2021-01-15 13:56  leejay_python  阅读(64)  评论(0编辑  收藏  举报