【发布时间】:2023-03-30 15:12:01
【问题描述】:
我有以下数据:
1.
Little Grebe
Tachybaptus ruficollis
टीबुकली
2.
Great Crested Grebe
Podiceps cristatus
मोठी टीबुकली
3.
Black-necked Grebe
Podiceps nigricollis
काळया मानेची टीबुकली
4.
Spot-billed Pelican
Pelecanus philippensis
ठीपक्याच्या चोचीचा झोळीवाला
我需要创建一个看起来像这样的表:
- (tab) Little Grebe (tab) Tachybaptus ruficollis (tab) टीबुकली
现在我的代码如下:
f = open("test.txt", "r")
for i in range(2210): # 2210 is the number of lines in the file
print(' ')
for j in range(4):
print(f.readline(30)+'\t', end='')
感谢您的帮助!
【问题讨论】:
标签: python file input datatable output