나는이 오류 내 아래 코드에서나는이 오류
TypeError: unsupported operand type(s) for +: 'int' and 'str'
가 계속에 대한 혼란 스러워요 :
done = False
while not done:
if You.Hit_points > 0 and Opponent.Hit_points > 0:
move = raw_input("Would you like to make a move? (y/n) ")
if move == "y":
print "",You.name,"hit ",Opponent.name," by",You.Hit_points," hit points!"
Opponent.Health = You.Hit_points + You.Skill_points + Opponent.Health
가 감사를!
unsupported operand type(s) for +: 'int' and 'str'
다시 읽기 오류. 진짜 천천히. –문자열에 숫자를 추가하는 것은 허용되지 않습니다. 모든 숫자 또는 모든 문자열을 만드십시오. –