<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
No no da mensaje de error si no que al poner lo que sea te salta directamente muy maal<br><br><div><hr id="stopSpelling">Date: Thu, 11 Aug 2011 19:43:15 -0400<br>From: mzmprog@gmail.com<br>To: python-es@python.org<br>Subject: Re: [Python-es] Problema al ejecutar script en linea de comandos        windows<br><br>Serviria de mucho el mensaje de error<br><br>pero si pruebo tu script <br><br><br>while True:<br><br> a = input("Introduzca la contraseña")<br> if (a) == 1 :<br> print a<br> print ("bien hecho")<br>
break<br> else:<br> print a<br> print ("muy maal")<br><br>esta Bueno <br><br>El problema es la letra ñ en tu programa <br><br>si el error es este que te aparece <br><br>C:\py>python testinput.py<br>
<br> File "testinput.py", line 3<br>SyntaxError: <b>Non-ASCII character '\xf1' </b>in file testinput.py on line 3, <br>but no encoding declared; see <a href="http://www.python.org/peps/pep-0263.html" target="_blank">http://www.python.org/peps/pep-0263.html</a> for details<br>
<br><br><br><a href="http://www.python.org/peps/pep-0263.html" target="_blank">http://www.python.org/peps/pep-0263.html</a> <br><br><br><br><br><div class="ecxgmail_quote">El 11 de agosto de 2011 19:28, Sergio ooooooo oooooooooooo o <span dir="ltr"><<a href="mailto:sergery_98@hotmail.com">sergery_98@hotmail.com</a>></span> escribió:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Ponga lo que ponga siempre me da muy maal<br><br><div>> From: <a href="mailto:davidmenhur@gmail.com">davidmenhur@gmail.com</a><br>> Date: Fri, 12 Aug 2011 01:25:14 +0200<div class="ecxim"><br>> To: <a href="mailto:python-es@python.org">python-es@python.org</a><br>
> Subject: Re: [Python-es] Problema al ejecutar script en linea de comandos        windows<br>> <br></div><div><div></div><div class="h5">> El significado de input ha cambiado de Python 2.x a 3.x. ¿Estás seguro<br>> de que en la consola lo estás ejecutando con Python 3? Prueba a meter<br>
> texto (sin números), si no te da error, estás en P3.<br>> <br>> 2011/8/12 Sergio ooooooo oooooooooooo o <<a href="mailto:sergery_98@hotmail.com">sergery_98@hotmail.com</a>>:<br>> > Bueno amigos tengo este miniscript(python 3.2)<br>
> ><br>> > while True:<br>> ><br>> > a = input('Introduzca la contraseña')<br>> ><br>> > if (a) == '1' :<br>> > print ('bien hecho!')<br>
> > break<br>> > else:<br>> > print ('muy maal')<br>> ><br>> ><br>> > Cuando lo ejecuto en el interprete va de maravilla ahora cuando lo ejecuto<br>> > como contraseña.py en la linea de comando de windows al poner 1 no me lo<br>
> > reconoce y me pone muy maal<br>> ><br>> > Saludos y gracias de adelantado :)<br>> ><br>> > _______________________________________________<br>> > Python-es mailing list<br>> > <a href="mailto:Python-es@python.org">Python-es@python.org</a><br>
> > <a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>> > FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br>
> ><br>> ><br>> _______________________________________________<br>> Python-es mailing list<br>> <a href="mailto:Python-es@python.org">Python-es@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>
> FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br></div></div></div>                                            </div></div>
<br>_______________________________________________<br>
Python-es mailing list<br>
<a href="mailto:Python-es@python.org">Python-es@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>
FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:right">Miguel Zamora M.<br>Programador en Computacion e Informatica<br>08-1351249<br><a href="mailto:mzmprog@gmail.com">mzmprog@gmail.com</a><br>
Santiago-Chile</div><div style="display:inline"></div><br>
<br>_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/</div>                                            </div></body>
</html>