Advertisement
dsuveges

colab file read

Nov 22nd, 2021
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. from google.colab import drive
  2.  
  3.  
  4. a=[]
  5. drive.mount('/content/gdrive')
  6.  
  7. with open('/content/gdrive/MyDrive/teszt.txt','r') as fin:
  8.     for line in fin.readlines():
  9.         a.append( [ int(x) for x in line.split() ] )
  10.  
  11. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement