Fork me on GitHub
摘要: >>> st='hello kitty {name} is {age}' >>> print(st) hello kitty {name} is {age} >>> print(st.count('l')) # 统计元素个数 2 >>> print(st.capitalize()) # 首字母大写 阅读全文
posted @ 2020-11-10 18:45 stardsd 阅读(157) 评论(0) 推荐(0) 编辑