print r'''"To be, or not to be": that is the question.\nWhether it's nobler in the mind to suffer.'''
2020-02-24
python 3.0版本以上 都要带上 括号了
a = 'python'
print('hello,', a or '5')
b = ''
print('hello,', b or 'world')
a = 'python'
print('hello,', a or '5')
b = ''
print('hello,', b or 'world')
2020-02-24
sum=0
x1=1
n=100
d=3
y=0
while True:
sum+=x1
x1+=d
y+=1
if y>=n:
break
print sum
x1=1
n=100
d=3
y=0
while True:
sum+=x1
x1+=d
y+=1
if y>=n:
break
print sum
2020-02-22