[ad_1]
Here is my code:
def option_A():
print("Pick a Fixture!")
fixture_choice = int(input("Enter: "))
file = open("firesideFixtures.txt", "r")
fixture_number = file.readlines(fixture_choice)
fixture = [linecache.getline("firesideFixtures.txt", fixture_choice)]
print(fixture)
file.close()
The first line from the file I am using is:
1,02/09/15,18:00,RNGesus,Ingsoc,Y,Ingsoc
The expected result is:
1, 02/09/15, RNGesus, Ingsoc, Y, Ingsoc
The result I get:
['1,02/09/15,18:00,RNGesus,Ingsoc,Y,Ingsocn']
How can I do this?
[ad_2]
لینک منبع