Fork me on GitHub
摘要: 一、capwords() 将字符串中所有单词的首字母大写。 import string s = 'The quick brown fox jumped over the lazy dog.' print(s) print(string.capwords(s)) The quick brown fox 阅读全文
posted @ 2022-01-18 23:56 橘子偏爱橙子 阅读(31) 评论(0) 推荐(0) 编辑