how to write or create(when no exist) a file using python..
Posted
by zjm1126
on Stack Overflow
See other posts from Stack Overflow
or by zjm1126
Published on 2010-04-21T03:55:48Z
Indexed on
2010/04/21
4:03 UTC
Read the original article
Hit count: 194
this is my code:
f = open('text/a.log', 'wb')
f.write('hahaha')
f.close()
and it is not create a new file when not exist
how to do this ,
thanks
© Stack Overflow or respective owner