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成神之路。
共有 0 条评论