格式化数字为精确数字字符串,带千分位逗号。
(count)
| 63 | return f"section-{section}-{category_index}" |
| 64 | |
| 65 | def format_count(count) -> str: |
| 66 | """格式化数字为精确数字字符串,带千分位逗号。""" |
| 67 | if count is None: |
| 68 | return "-" |
| 69 | return f"{int(count):,}" |
| 70 | |
| 71 | def escape_table_text(text: str) -> str: |
| 72 | """转义 Markdown 表格中的特殊字符。""" |
no outgoing calls
no test coverage detected