muchas gracias.
Efectivamente, como dice mi tocayo, no me ha creado el archivo por que he
definido* abrirtxt* pero no lo he invocado.

(creo)

El 19 de noviembre de 2012 11:23, Kiko <kikocorre...@gmail.com> escribió:

>
>
> El 19 de noviembre de 2012 11:09, Carlos Agulló Calvo <cm.agu...@gmail.com
> > 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
> Python-es@python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a