MCPcopy Create free account
hub / github.com/jackvale/rectg / format_count

Function format_count

scripts/generate_readme.py:65–69  ·  view source on GitHub ↗

格式化数字为精确数字字符串,带千分位逗号。

(count)

Source from the content-addressed store, hash-verified

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

Callers 2

build_stats_tableFunction · 0.85
generate_readmeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected