inflect.Humanize
返回输入的人性化形式,并大写首字母。
{{ humanize "my-first-post" }} → My first post
{{ humanize "myCamelPost" }} → My camel post如果输入是整数或整数的字符串表示,humanize 会返回附加了正确序数词尾的数字。
{{ humanize "52" }} → 52nd
{{ humanize 103 }} → 103rd返回输入的人性化形式,并大写首字母。
{{ humanize "my-first-post" }} → My first post
{{ humanize "myCamelPost" }} → My camel post如果输入是整数或整数的字符串表示,humanize 会返回附加了正确序数词尾的数字。
{{ humanize "52" }} → 52nd
{{ humanize 103 }} → 103rd