Advertisement
Guest User

Untitled

a guest
Apr 8th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. >>> def lirecodeenliste ():
  2. ...     liste = []
  3. ...     flux = open("alpha_code.txt")
  4. ...     for n, line in enumerate(flux):
  5. ...             liste.append(line.split()[0])
  6. ...     flux.close()
  7. ...     print liste
  8. ...
  9. >>> lirecodeenliste()
  10. ['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