先使用如下命令安装包:pip install smawe-tools
使用smawe_tools.get_pubnet_ip()是获取本机上网时所使用的ip使用smawe_tools.get_ip()可获取指定域名或者url的服务器ip
获取ip代码如截图所示[滑稽]