문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top