Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
case modifiers
|
upper(), lower()
swapcase(), title() capitalize() just cap first all ret a copy |
|
codecs
|
encode([encoding[,handler]])
decode([encoding[,handler]]) translate(str256[,delchars]) expandtabs([tw=8]) |
|
enpadding
|
center(width[,fillchar]) //overflow shows
l[r]just(width[,fillchar]) zfill(width) //never truncates either |
|
searching
|
count(sub[,start[,end]]) //c the non-oling
endswith(sufOrTup[,s[,e]]) [r]find(sub[,s[,e]]) -> lowest idx or -1 [r]index(sub[,s[,e]]) -> l[h]idx or ValueError startswith(preTup[,s[,e]]) endswith(sufTup[,s[,e]]) |
|
formatting, deformatting
|
format(args), %
join(seq) [r]partition(sep) -> (head,sep,tail) [r]split([sep=ws[,max]]) [l,r,]strip([chars]) splitlines([keepends]) |
|
modding
|
replace(old,new[,max])
rets a copy |
|
create regex
|
re.compile(pat,flags=0)
re.escape(pat) re.purge() //clear cache |
|
find regex
|
re.findall(pat,str,fla) list of groups || list of matches incl empty
re.finditer(pat,str,fla) re.match(pat,str,fla) re.seach(pat,str,fla) //ret match || None |
|
regex proc
|
re.findall(pat,str,fla) list of groups || list of matches incl empty
re.finditer(pat,str,fla) re.split(pat,str,max) re.sub(pat,rep,str,cnt=0)->nstr re.subn(pat,rep,str,cnt=0)->(nstr,n) |