我得到這個錯誤:uTypeError:不支持的操作數類型(S) - : '海峽' 和 '海峽'
uTypeError: unsupported operand type(s) for -: 'str' and 'str'
從這個代碼:
print "what is your name?"
x=raw_input()
print "Are you woman or man?"
y=raw_input()
print "how old are you?"
z=raw_input()
print "at what age did you or will you first travel in an plane?"
f=raw_input()
print "This is a story about a ",y," named ",x
print z-f ,"years ago",x, " first took an airplane."
print " the end"
爲什麼?
回滾使問題與答案匹配; @ user1240834,如果你有一個新問題,而不是編輯這個問題,請打開一個新問題。 – DSM 2012-02-29 19:10:45