摘要:
1. d={'林彬':'01','卢本伟':'03','pdd':'03'}print(d['林彬']) d.pop('pdd')print(d)print(d.items()) d['ty']='12'print(d) 2. ls=list('123456')print(ls)for i in l 阅读全文
摘要:
1. s='''We don't talk anymoreWe don't talk anymoreWe don't talk anymoreLike we used to do We don't laugh anymoreWhat was all of it for ? We don't talk 阅读全文
摘要:
1. s=input('明文:') print ('密文:',end='') for i in s: print(chr(ord(i)+3),end='') 2. print('国家名称 GDP总量(人民币亿元)')print('{0:<5}{1:>12,.4f}'.format('中国 ¥',76 阅读全文
摘要:
1. from turtle import*shape('turtle')color('yellow')fillcolor('yellow')begin_fill()for i in range(5): forward(100) right(144)end_fill() 2. from turtle 阅读全文
摘要:
1. print('hello world') s input('your name;') your name:12 '12' name=input('what your name:') what your name:12 print('hi,%s'%name) hi,12 2. n=input(' 阅读全文