Answers for "open python file online"

11

python file open

#there are many modes you can open files in. r means read.
file = open('C:Usersyournamefilesfile.txt','r')
text = file.read()

#you can write a string to it, too!
file = open('C:Usersyournamefilesfile.txt','w')
file.write('This is a typical string')

#don't forget to close it afterwards!
file.close()
Posted by: Guest on March-26-2020
8

python ide online

#1
https://www.onlinegdb.com/online_python_compiler
#2
https://repl.it/languages/python3
Posted by: Guest on November-01-2020
35

online python compiler

Use this site
https://repl.it/languages/python3
Posted by: Guest on October-20-2020
-2

python get an online file

import urllib2  # the lib that handles the url stuff

data = urllib2.urlopen(target_url) # it's a file like object and works just like a file
for line in data: # files are iterable
    print line
Posted by: Guest on June-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language