Pregunta

In IDLE using 3.2, whenever I enter a statement in a block and press Enter, the cursor jumps ahead. A LOT. It isn't a big deal, but it's annoying. Does it have to do with my code? Is there a fix?

http://www.mediafire.com/view/?kgcg35grt3tllcg

¿Fue útil?

Solución

I SEE THE PROBLEM! Here:

def getSystem():
if os.path.exists("C:\"):
    system = "Windows"

If you look at the highlighting, the ("C:\") does not work. I recommend trying to make it ("C:\\") instead and seeing if that will work. I have this problem a lot when I forget a ), like if I say for i in range(len(myList), I forgot to put the last ). Whenever this happens, just know that there is are unclosed parenthesis somewhere.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top