2015-01-04 2 views
-2
input("If you wish to play Clockwork(Temporary Name)Alpha, please enter start.") 

if "start" == input(): 
    print("You have decided today would be a good day to actually do something with your best friend, who happens to be your twin, rather than play python-based text adventure games. Where do you choose to hang out?") 
    input("Type 1 to go to the movies") 
    input("Type 2 to go for some ice cream") 
    input("Type 3 for you want to go on long walks on the beach") 
    input("Type 4 if you want to visit the park") 
#Was stuck on these first lines of code for at least four hours. What mostly got me was having the program reacat to the user typing in "start" 

if "1" == input(): 
    print("You remember seeing a intersting movie by the name of Antler Hooves on a ad on TV. It fit you and your twin perfectly since you're very silly." 
    ***print***("You call her and catch up since you haven't seen her in a couple months since you've been busy studying to become a camera-man and she has been equally busy trying to become an artist.") 
    print("She is surprised by your choice of movie, and tell you about a new indie sc-fi movie, The Alien Amoung Us, exculsive to a certain branch of movie theaters. You look it up and decide it woudl be a better choice.You buy the tickets and go to meet her at the theater.) 
    print("Once you arrive at the theater, you are confused why you ever stopped talking. You enter the theater.") 
    print("You evantually finish the two hour movie and decide to go get some food; specifeclly ice cream; being as chidish as you are.") 
    print("You cross the street t oget to the ice cream parlor, but before you could finsih crossing, a car comes by. You exclaim that he was insane and that you are saddned by the face you didn't catch his licsnce plate. You then look down adn see your twins corpse.") 
    print("Terror and hatered fills your bones as peopel rush out of there cars coming to you and calling 911. You feel empty inside, and then feel a surge of power go through your body. 

누구나 두 번째 인쇄에서 구문 오류를 수정하는 방법을 알고 있습니까? 마지막에잘못된 구문 print Python 3.4.2

print("You remember seeing a coole movei by the naem of Antler Hooves. It fit you and your twin perfectly since you're very silly." 

:

+6

. 문자열 리터럴도 제대로 닫히지 않습니다. – iCodez

+0

이 문제는 간단한 인쇄 오류로 인해 문제가되는 것 같습니다. – worldofjr

답변

0

음, 음, 당신은 괄호 여기에 놓치고있어 (난 단지 아주 기본적인 파이썬의 지식을 가지고).

그리고 적어도 세 가지 유사한 오류가 있습니다. 구문 강조 표시를 사용하여 적절한 편집기에서 살펴 보겠습니다.

보조 노트로서, 당신은 여러 줄의 문자열이 사용할 수 있습니다 : 당신은 위의 라인에 닫는 괄호를 누락

print("""First line 
second line 
third line"""); 
+0

와우, 나는 많은 실수를했다 (나의 끔찍한 철자 포함). 고마워, 내가 방금 잘못된 장소를 무시한 것처럼 보입니다. – Brian

+1

네, 누락 된 따옴표와 괄호가 더 있습니다. 코드를 강조하는 편집기를 사용하면 즉시 찾아 낼 수 있습니다. – MightyPork