有没有在Python的标准方式标题字符的字符串(即词开始大写字符,所有剩余的套管字符有小写),但像离开的文章and,in和of小写?
and
in
of
python string title-case
有没有办法.title()用撇号从标题中获取正确的输出?例如:
.title()
"john's school".title() --> "John'S School"
我如何在这里获得正确的标题"John's School"?
"John's School"
python string uppercase
python ×2
string ×2
title-case ×1
uppercase ×1