re.findall(pattern,string)
re.search(pattern,string)
re.match(pattern,string)
re.search and re.match results match object
<class 're.Match'>
re.Match class have group
the finding can be calculated by group(0) and group(1) and likewise
re.Match()
-searches at start of string
if it doesn't equals it returns none object
re.findall()
-It returns list and find all matching items in string
Subscribe to:
Post Comments (Atom)
-
#these program uses -stream_loop option import os #loop four times os.system("ffmpeg -stream_loop 4 -i output.avi -c copy outputqsa....
-
DATASCIENCE pip install -U pip pip install nmap pip install matplotlib pip install scipy pip install scikit-learn pip install pandas ...
-
import random def add(list1): c=0 for x in list1: c+=x return c def mean(c): result=c/9 return result def median(list1,n)...
No comments:
Post a Comment