print "This is to find the area or perimeter of a rectangle or triangle?"
print "Do you want to find the area or perimeter of a rectangle(r) or triangle(t)?"
l= raw_input("I want to find the area or perimeter of a ")
if l=='r':
print "Do you want to find the area(a) or perimeter(p) of your rectangle?"
a= raw_input(" I want to find the ")
if a=='p':
print "What is the length of the rectangle?"
b = int(raw_input("The length of the rectangle is "))
print "What is the width of the rectangle?"
c = int(raw_input("THe width of the rectangle is "))
d = (2 * b) + (2 * c)
print d
elif a=='a':
print "Got it. What is the length of your rectangle?"
x = int(raw_input("The length of the rectangle is "))
print "What is the width of your rectangle?"
y = int(raw_input("The width of the rectangle is "))
z = x * y
print z
if l=='t':
print "Do you want to find the area(a) or perimeter(p) of your triangle?"
m= raw_input("I want to find the "
if m == 'a':
print "What is the length of your triangle?"
n = int(raw_input("The length of the triangle is "
print "What is the width of your triangle?
o = int(raw_input("The width of the triagle is "
q = (n * o)/2
print q
elif m=='p'
print "What is the first length of your triangle?"
r = int(raw_input("The first length of the triangle is ")
print "What is the second length of the triangle?"
s = int(raw_input("The second length of the triangle is ")
print "What is the third length of the triangle?"
u = int(raw_input(" The third length of the triangle is ")
v = r + s + u
print v
它说在线路上输入错误,说明。请帮忙。为什么会说“坏的输入”?