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.'''
2016-01-20
s = 'Python was started in 1989 by \"Guido\".\nPython is free and easy to learn.'
print s
print s
2016-01-20
x1 = 1
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1 + x100)*100/2
print s
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1 + x100)*100/2
print s
2016-01-20
int x1,d,n,x100
x1 = 1
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1 + x100)*100/2
print s
x1 = 1
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1 + x100)*100/2
print s
2016-01-20
最赞回答 / 神经旷野舞者
你没有给出完整的代码和结果,所以不太明白你的意思。如果你是想修改 list 的元素值,可以谷歌搜索“get index in iteratrion of list python”,然后第一个结果就是问题的答案,或者查找 python的官方参考手册查找函数:<...code...><...code...>
2016-01-19