Advertisement
wojcieszek

wczytywanie z pliku online

Dec 2nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import urllib.request
  2. name = 'http://www.imsi.pl/imsi/api/download.php?file=user/u23/Programowanie%20skryptowe/CAL.TXT'
  3. conn = urllib.request.urlopen(name)
  4. tabela = []
  5. for i in conn:
  6.     s = i.split()
  7.     for x in s:
  8.         if x.isdigit():
  9.             tabela.append(x)
  10.  
  11. print()
  12. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement