TGViewer
Machinelearning tests Machinelearning tests @machinelearningtest · 661 subscribers
Post #151 558
Что выведет код?
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))
More from @machinelearningtest
  1. Apr 16, 2025❓ Что выведет следующий код на Python (модуль statistics)? import statistics as stats impo…
  2. Jul 25, 2024Post #200
  3. Jul 25, 2024Что выведет код? ((lambda x: (lambda y: x ** y)) (3)) (2)
  4. Jul 18, 2024Post #198
  5. Jul 18, 2024Что выведет код? import sys f = lambda x: list(map(sys.stdout.write, x)) t = f(['1', '2',…
  6. Jul 18, 2024Post #196
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →