关于Python编程,在test.txt里有两列数据,原格式如下一,要求输出如下格式二,求python代码!
原格式一:18144206.223.119.6756203206.223.119.11956203206.223.119.13411111206.223.119.6722...
原格式一:
18144 206.223.119.67
56203 206.223.119.119
56203 206.223.119.134
11111 206.223.119.67
22222 206.223.119.67
33333 206.223.119.67
44444 206.223.119.119
55555 206.223.119.119
66666 206.223.119.134
输出格式二:
18144 11111 22222 33333 206.223.119.67
56203 44444 55555 206.223.119.119
56203 66666 206.223.119.134 展开
18144 206.223.119.67
56203 206.223.119.119
56203 206.223.119.134
11111 206.223.119.67
22222 206.223.119.67
33333 206.223.119.67
44444 206.223.119.119
55555 206.223.119.119
66666 206.223.119.134
输出格式二:
18144 11111 22222 33333 206.223.119.67
56203 44444 55555 206.223.119.119
56203 66666 206.223.119.134 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询