나는이 프로그램을 지금 당장 실행하려고 노력하고 있지만, 실행하려고 할 때 오류를 일으키는 원인을 찾을 수없는 것 같습니다. 당신은 평등 대신 할당 연산자를 사용하는구문 오류 무엇이 될 수 있습니까?
from math import *
from myro import *
init("simulator")
def rps(score):
""" Asks the user to input a choice, and randomly assigns a choice to the computer."""
speak("Rock, Paper, Scissors.")
computerPick = randint(1,3)
userPick = raw_input("Please enter (R)ock, (P)aper, or (S)cissors.")
if userPick = R <#This line is where the error shows up at>
print "You picked rock."
elif userPick = P
print "You picked paper."
else
print "You picked Scissors."
score = outcome(score, userPick, computerPick)
return score
이 * * 오류 무엇이어야 하는가? 정확히 어디에서? 완전한 추적 오류 메시지 – Levon
을 게시하십시오. 코드 줄이 아닙니다. –
어떤 라인과 무엇이 오류입니까? – eduffy