2
그래서 파이썬과 세미 코딩에 익숙하지 않으며 일반적으로 코딩하기가 힘들어졌습니다.내 텍스트 모험은 인쇄되지 않습니다. [python]
#startup
startup = "welcome to 'da spoopy house', type 'start'"
work = raw_input(startup)
<here is full code>
#functions
#keywords
varlook = "look"
vargo = "go"
varhouse = "house"
#story
st01 = "You are outside, its dusk. there is a house in front of you. both you and the house are surrounded by a forest"
st02 = "You walk up to the house, you notice a small yard with flowers lining the perimeter. As you step up to the door, you notice a small note attached to the door"
#instructions... ?
#action
print st01
raw_input()
if varlook in work:
print "%s" % st01
raw_input()
if raw_input == ("%s to %s") % (vargo, varhouse):
print "%s" % st02
raw_input()
내가 원하는 키워드를 입력 할 때 문제는 여기
#action
print st01
raw_input()
if varlook in work:
print "%s" % st01
raw_input()
if raw_input == ("%s to %s") % (vargo, varhouse):
print "%s" % st02
raw_input()
입니다 단순히 다시 대기로 나를 데려 프로그램을 중지합니다. 도움을 주시면 감사하겠습니다.
'raw_input을 == ("%의 % s의")의 경우'당신은 어딘가에 루프를 추가해야합니다 –
. 그것 없이는 스크립트가 끝나고 종료됩니다. –