程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python writes tables as TXT

編輯:Python

1 549 192.168.202.202
2 337 192.168.204.174
3 403 192.168.204.187
4 532 192.168.207.110
5 400 192.168.204.190
6 531 192.168.203.37
7 341 192.168.204.196
8 645 192.168.201.243
9 583 192.168.202.160
10 618 192.168.203.226
There's something on it csv, Need to use python Convert to the following text , How to write
The machine number in the second column is written as Host, The third column ip writes HostNmae

Host 549
HostName 192.168.202.202
user pythonman
Host 337
HostName 192.168.204.174
user pythonman
Host 403
HostName 192.168.204.187
user pythonman


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved