2019体育数据收入

with open('2019sport.csv', 'r', encoding='utf-8') as data:
ls1 = []
while True:
tentative = data.readline().strip().split(',')
if '' in tentative:
break
else:
ls1.append(tentative)
# print(ls1)
# print(ls1)
option = input()

try:
if 0 < int(option) <= 100: option = int(option) print(f'Rank: {option}/nName: {ls1[option][1]}/nPay: {ls1[option][2]}/nSalary/Winnings: {ls1[option][3]}/n'

2019体育数据收入最先出现在Python成神之路

版权声明:
作者:dingding
链接:https://www.techfm.club/p/17074.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>