feat: 优化代码格式,提升可读性和一致性

This commit is contained in:
Your Name committed 2026-01-06 22:39:58 +08:00
1 parent 68295e564e
commit c6eb76845f
7 files changed
+82 -36

No files matched your search

+14 -14
View File
@@ -1,18 +1,18 @@
from douyin.utils.douyin_utils import extract_prize_value_yuan
tests=[
'¥12.34',
'¥12·34',
'¥12.34',
'¥12.34',
'12.34元',
'12,345.67',
'¥O2.5O',
'¥1O.5',
'价值:12.5',
'价值12。5',
'价值12·5',
'随机文本 0.5 元',
tests = [
"¥12.34",
"¥12·34",
"¥12.34",
"¥12.34",
"12.34元",
"12,345.67",
"¥O2.5O",
"¥1O.5",
"价值:12.5",
"价值12。5",
"价值12·5",
"随机文本 0.5 元",
]
for t in tests:
print(t, '->', extract_prize_value_yuan(t))
print(t, "->", extract_prize_value_yuan(t))