d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for key in d:
print('%s:%d'%(key,d[key]))
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for key in d:
print('%s:%d'%(key,d[key]))
2020-04-09
i=45678
j=0x12fd2
print(i+j)
print('Learn Python in imooc')
i=100<90
j=(0xff==255)
print(i,j)
j=0x12fd2
print(i+j)
print('Learn Python in imooc')
i=100<90
j=(0xff==255)
print(i,j)
2020-04-08
d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for key in d:
print key,':',d[key]
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for key in d:
print key,':',d[key]
2020-04-07
for x in range(1,10):
for y in range(0,10):
if x < y:
print(str(x)+str(y))
for y in range(0,10):
if x < y:
print(str(x)+str(y))
2020-04-07
for x in range(1,10):
for y in range(x+1,10):
print x*10+y
for y in range(x+1,10):
print x*10+y
2020-04-06
L = [a*100 + b*10 + c for a in range(1, 10) for b in range(0, 10) for c in range(0, 10) if a==c]
print L
print L
2020-04-06