我使用一个简单的代码,找到一个人的名字和年龄,
单我不断收到这个'int' object is not subscriptable
错误。
name1 = raw_input("What's your name? ")
age1 = raw_input ("how old are you? ")
x = 0
int([x[age1]])
twentyone = 21 - x
print "Hi, " + name1+ " you will be 21 in: " + twentyone + " years."
相似问题