score = 85
if score >=90:
print 'excellent'
elif score >=80:
print 'good'
elif score >=60:
print 'passed'
else:
print 'failed'
if score >=90:
print 'excellent'
elif score >=80:
print 'good'
elif score >=60:
print 'passed'
else:
print 'failed'
2016-03-14
def greet(x):
if x is null:
print("Hello,world.")
else:
print("Hello,"+x)
greet()
greet('Bart')
if x is null:
print("Hello,world.")
else:
print("Hello,"+x)
greet()
greet('Bart')
2016-03-14
t = ('a', 'b', ('A', 'B'))
print t
print t
2016-03-14
L = ['Adam', 'Lisa', 'Bart']
L.insert(2,'Paul')
print L
L.insert(2,'Paul')
print L
2016-03-14
已采纳回答 / xuefenls
# -*- coding: utf-8 -*-import mathdef quadratic_equation(a, b, c): t=math.sqrt(b*b-4*a*c) if t>=0: return (-b+t)/(2*a),(-b-t)/(2*a) else: print u“无解” return print quadratic_equation(2, 3, 0)print quadratic_equation(1, -6, ...
2016-03-14