Web Oom
Build and Share Web Technology
Home
Django
Python
Amazon.com Widgets
Dec
22
2009
Python: How to read lines
python
No Responses »
Use readlines()
For example,
arg = “filename”
f = open(arg, ‘r’)
lines = f.readlines()
f.close()
Posted by
weboom
at 2:32 pm
Tagged with:
python
,
readlines
Categories
django
(105)
html
(6)
linux
(38)
python
(38)
Uncategorized
(26)
windows
(5)
Tags
?P
a
admin
app
a tag
block
blog
Class meta
comment
context
database
db
debug
def
definition
delete
dictionary
directory
django
eclipse
emacs
error
extends
filter
find
function
get
href
import
install
linux
list
manage.py
model
python
query
queryset
shell
svn
syncdb
template
ubuntu
urlconf
urls.py
windows
Switch site
Switch to our mobile site
© 2009
Suffusion
WordPress theme
by
Sayontan Sinha
Switch to our mobile site