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.'''
2015-12-06
s = 'Python was started in 1989 by "Guido".\nPython is free and easy to learn.'
print s
print s
2015-12-06
x1 = 1
d = 3
n = 100
x100 = x1+d*99
s = n*(x1+x100)/2
print s
s=14950
d = 3
n = 100
x100 = x1+d*99
s = n*(x1+x100)/2
print s
s=14950
2015-12-06
def greet(x='world'):
print 'hello',x
greet()
greet('bart')
print 'hello',x
greet()
greet('bart')
2015-12-06
已采纳回答 / weibo_小强同学慢慢走在冷风_0
你的问题是什么。。。你的代码L[-1]确实得到了最后一个啊10L[m,n]取得是下标为m到n的元素,其中包括L[m],但不包括L[n]看看这个问题吧
2015-12-06
t = ('a', 'b', ('A', 'B'))
print t
print t
2015-12-05
s = set(['Adam', 'Lisa','Bart', 'Paul'])
print s
print len(s);
print s
print len(s);
2015-12-05