摘要: ## 获取Linux上ip地址 linux命令 ``` ifconfig ``` python程序 ```python import socket def get_host() hostname = socket.gethostname() ip = socket.gethostbyname(hos 阅读全文
posted @ 2022-02-08 17:08 贝壳里的星海 阅读(762) 评论(0) 推荐(0) 编辑