nwnusun

   ::  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年1月11日

摘要: 问题 我用subprocess 执行命令查 主机Ip 报错 ​ command = """ "grep {0} /etc/hosts | awk '{print $1}' " """.format(socket.gethostname()) KeyError: 'print $1' 使用python 阅读全文
posted @ 2023-01-11 16:05 匿名者nwnu 阅读(867) 评论(0) 推荐(0) 编辑