摘要:
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
阅读(168)
推荐(0)
摘要:
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
阅读(154)
推荐(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
阅读(73)
推荐(0)
摘要:
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
阅读(100)
推荐(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
阅读(93)
推荐(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
阅读(63)
推荐(0)
摘要:
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
阅读(176)
推荐(0)
摘要:
menu={'jx':{'shangrao':{'yiyang':{'zuoshenwei':{'staff':69,'money':9002869}, 'haungjia':{'landscape':'beatiful','dog':4} }, 'hengfeng':{}, 'yangshang'
阅读全文
posted @ 2020-03-08 18:08
alansuny
阅读(236)
推荐(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
阅读(185)
推荐(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
阅读(176)
推荐(0)