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

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

import re
s = "<span>1</span><b>2</b>"
p1 = re.compile(r"(<\w+>.*</\w+>)")
p2 = re.compile(r"(<\w+>.*?</\w+>)")
x1 = p1.findall(s)
x2 = p2.findall(s)
print(len(x1), len(x2))

Что выведет код?
import re
s = "<span>1</span><b>2</b>"
p1 = re.compile(r"(<\w+>.*</\w+>)")
p2 = re.compile(r"(<\w+>.*?</\w+>)")
x1 = p1.findall(s)
x2 = p2.findall(s)
print(len(x1), len(x2))


>>Click here to continue<<

Machinelearning tests




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)