0
Someone Please Explain this code
import re pattern = r"1(23)(4(56)78)9(0)?" match = re.match(pattern, "1234567890?") if match: print("grupo :",(match.group())) print("grupo 0:",(match.group(0))) print("grupo 1:",(match.group(1))) print("grupo 2:",(match.group(2))) print("grupo 3:",(match.group(3))) print("grupo 4:",(match.group(4))) print(match.groups())
3 Respuestas
0
it will match and print the no along with str"Grupo :-no
e.g.:-ans :-('grupo :', '1234567890')
('grupo 0:', '1234567890')
('grupo 1:', '23')
('grupo 2:', '45678')
('grupo 3:', '56')
('grupo 4:', '0')
('23', '45678', '56', '0')
0
Thank You.
0
Hey Aditya, Please help me with this as well.
https://www.sololearn.com/Discuss/2237518/unable-to-use-get_dtype_counts