alansuny

导航

 

2020年3月14日

摘要: content will be learn: how to use set. set is a object ,characters :not be repetitive,can be hashing. startup in two way : set () can be add and delet 阅读全文
posted @ 2020-03-14 11:21 alansuny 阅读(165) 评论(0) 推荐(0) 编辑
 

2020年3月13日

摘要: def add(*args): sum=0 for i in args: sum+=i add(1,2,3,4) print(add) # nano def add(*args): sum=0 for i in args: sum+=i return sum,123,[1,2,3] add(1,2, 阅读全文
posted @ 2020-03-13 20:20 alansuny 阅读(152) 评论(0) 推荐(0) 编辑
 
摘要: define function .return value is required. instance: def f(): print('hello world') return 10 # return represents two replications. 1:process is execut 阅读全文
posted @ 2020-03-13 19:39 alansuny 阅读(71) 评论(0) 推荐(0) 编辑
 

2020年3月9日

摘要: import sys,time for i in range(10): sys.stdout.write('***") can output *************** standard input: stdin standard output: stdout test; import sys, 阅读全文
posted @ 2020-03-09 16:48 alansuny 阅读(96) 评论(0) 推荐(0) 编辑
 
摘要: list ,dict,tuple, or docentment all can use for in loop> number=0 for i in file: number+=1 if i ==3: i=" ".join((i.strip,'word') print(i) read article 阅读全文
posted @ 2020-03-09 15:51 alansuny 阅读(83) 评论(0) 推荐(0) 编辑
 
摘要: handle class: for instance read file(article,assay,thesis,paper,ect...)ddd file_read=open('d:\jetbrians.com\python\pycharm\guide','r',encoding='UTF-8' 阅读全文
posted @ 2020-03-09 13:41 alansuny 阅读(60) 评论(0) 推荐(0) 编辑
 

2020年3月8日

摘要: chinese Ascii unicode--utf-8 The history of compute programe develpement,as long as compute programing language. The C++,Java,Javascript,python,eclips 阅读全文
posted @ 2020-03-08 21:47 alansuny 阅读(173) 评论(0) 推荐(0) 编辑
 
摘要: menu={'jx':{'shangrao':{'yiyang':{'zuoshenwei':{'staff':69,'money':9002869}, 'haungjia':{'landscape':'beatiful','dog':4} }, 'hengfeng':{}, 'yangshang' 阅读全文
posted @ 2020-03-08 18:08 alansuny 阅读(229) 评论(0) 推荐(0) 编辑
 
摘要: menu={'china':{'jx_province':{'sr_manicipality':{'yiyang_country':['qinghu_town','guifeng_town','wangli_town']},},}, 'American':{'wathton.dc':{'ei':{' 阅读全文
posted @ 2020-03-08 15:03 alansuny 阅读(177) 评论(0) 推荐(0) 编辑
 
摘要: str='hello world' str.startswith('he') str.endswith{'y"} str.expendtabs() st='he \t llo world' st.expandtabs(tabsize=10) st.find('e') :find first elem 阅读全文
posted @ 2020-03-08 00:24 alansuny 阅读(170) 评论(0) 推荐(0) 编辑