El 19 de noviembre de 2012 11:09, Carlos Agulló Calvo
<[email protected]>escribió:

> Me he creado el siguiente programita:
>
> def abrirtxt():
>     archi=open('est_0303201','w')
>     archi.close()
>
>  Y creoque me debería haber creado un archivo txt llamado *est_0303201, *pero
> no se donde me ha creado el archivo.
>
>
Te lo debería haber creado en la misma ruta desde donde corras tu script.
http://docs.python.org/3/library/functions.html?highlight=open#open

*file is either a string or bytes object giving the pathname (absolute or
relative to the current working directory) of the file to be opened or an
integer file descriptor of the file to be wrapped.*
_______________________________________________
Python-es mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a