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-06-04
print r'''"To be, or not to be": that is the question.\nWhether it's nobler in the mind to suffer.'''
right
right
2016-06-04
print [a*100+b*10+c for a in range(1,10) for b in range(0,10) for c in range(1,10) if a==c]
2016-06-04
print 45678+0x12fd2
print'Learn Python in imooc'
print 100<99
print 0xff==255
#python语言真简洁啊。。不加‘’是运算或解释,加‘’是字符串,真是爽!
print'Learn Python in imooc'
print 100<99
print 0xff==255
#python语言真简洁啊。。不加‘’是运算或解释,加‘’是字符串,真是爽!
2016-06-03
d={'Adam':95,'Lisa':85,'Bart':59,'Pual':74}
sum=0.0
average=0.0
for name,score in d.items():
print name,':',score
sum=sum+score
average=sum/len(d)
print 'average:',average
为啥不能通过,运行的结果也是一样的。。。
sum=0.0
average=0.0
for name,score in d.items():
print name,':',score
sum=sum+score
average=sum/len(d)
print 'average:',average
为啥不能通过,运行的结果也是一样的。。。
2016-06-03
我的脑洞和正常人不一样……
print [int(str(a)+str(b)+str(c)) for a in range(1,10) for b in range(0,10) for c in range(0,10) if a==c]
print [int(str(a)+str(b)+str(c)) for a in range(1,10) for b in range(0,10) for c in range(0,10) if a==c]
2016-06-03