Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> def lirecodeenliste ():
- ... liste = []
- ... flux = open("alpha_code.txt")
- ... for n, line in enumerate(flux):
- ... liste.append(line.split()[0])
- ... flux.close()
- ... print liste
- ...
- >>> lirecodeenliste()
- ['97', '65', '224', '192', '226', '194', '230', '198', '98', '66', '99', '67', '231', '199', '100', '68', '101', '69', '233', '201', '232', '200', '234', '202', '235', '203', '102', '70', '103', '71', '104', '72', '105', '73', '238', '206', '239', '207', '106', '74', '107', '75', '108', '76', '109', '77', '110', '78', '111', '79', '244', '212', '339', '338', '112', '80', '113', '81', '114', '82', '115', '83', '116', '84', '117', '85', '249', '217', '251', '219', '252', '220', '118', '86', '119', '87', '120', '88', '121', '89', '255', '376', '122', '90']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement