mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-02-12 06:47:06 +08:00
10 lines
203 B
Python
10 lines
203 B
Python
import re
|
|
name = "Tate no Yuusha no Nariagari S02"
|
|
|
|
season_rules = r'(.*)(S.\d)'
|
|
a = re.match(season_rules, name, re.I)
|
|
if a is not None:
|
|
print(a.group(1))
|
|
print(a.group(2))
|
|
else:
|
|
print(name) |