ᅠ
Size: a a a
ᅠ
JK
БГ
table users:
id: int PRIMARY
name: text
table messages:
id: int PRIMARY
sender: int FK(users.id)
receiver: int FK(users.id)
text: text
query get get_user(uid):
users(id, name)
users.id = uid
query get get_messages(uid):
messages(id, from, to, text)
(messages.from | messages.to) = uid
КБ
БГ
БГ
БГ
py3
import re
help(re.sub)
Help on function sub in module re:
sub(pattern, repl, string, count=0, flags=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the match object and must return
a replacement string to be used.
КБ
БГ
КБ
А
БГ
БГ
K
КБ
py3
import re
help(re.sub)
Help on function sub in module re:
sub(pattern, repl, string, count=0, flags=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the match object and must return
a replacement string to be used.
K
БГ
"d1d1d1222"
?)КБ
"d1d1d1222"
?)БГ