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'
2019-09-26
L = ['Adam', 'Lisa', 'Bart']
L.insert(2,'Paul')
print L
L.insert(2,'Paul')
print L
2019-09-26
# -*- coding: utf-8 -*-
print '''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
print '''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
2019-09-26
print r'''"To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.'''
Whether it's nobler in the mind to suffer.'''
2019-09-26
最新回答 / 慕村小生
刚刚那个码错了for x in [1,2,3,4,5,6,7,8,9]: for y in [1,2,3,4,5,6,7,8,9]: if x<y: print x*10+y有引号的是字符串,字符串和数字是不同数据类型,不能进行四则运算
2019-09-25
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
elif x%2==0:
continue
else:
sum=sum+x
print sum
x = 0
while True:
x = x + 1
if x > 100:
break
elif x%2==0:
continue
else:
sum=sum+x
print sum
2019-09-25
这属于数学计算题了,花了好久才整出来
x1 = 1
d = 3
n = 100
x100 = (n-1)*d+1
s = (x100+x1)*(n/2)
print s
x1 = 1
d = 3
n = 100
x100 = (n-1)*d+1
s = (x100+x1)*(n/2)
print s
2019-09-25
s = 'Python was started in 1989 by \" Guido \". \n Python is free and easy to learn. '
print s
print s
2019-09-25
x1 = 1
d = 3
n = 100
x100 = (n-1)*d+1
s = ((n-1)*n*d)/2+n*x1
print s,x100
d = 3
n = 100
x100 = (n-1)*d+1
s = ((n-1)*n*d)/2+n*x1
print s,x100
2019-09-25