TG Telegram Group & Channel
Machinelearning tests | United States America (US)
Create: Update:

Что выведет код?

import re
s = "a x \n x a"
p1 = re.compile(r"a.*?a")
p2 = re.compile(r"a.*?a", re.DOTALL)
r1 = p1.findall(s)
r2 = p2.findall(s)
print(len(r1), len(r2))

Что выведет код?
import re
s = "a x \n x a"
p1 = re.compile(r"a.*?a")
p2 = re.compile(r"a.*?a", re.DOTALL)
r1 = p1.findall(s)
r2 = p2.findall(s)
print(len(r1), len(r2))


>>Click here to continue<<

Machinelearning tests




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)