摘要: 1 # st='hello kitty {name} is {age}' 2 # 3 # print(st.count('l')) # 统计元素个数 4 # print(st.capitalize()) # 首字母大写 5 # print(st.center(50,'#')) # 居中 6 # print(st.endswith('tty3')) # ... 阅读全文
posted @ 2018-08-09 20:57 Money131 阅读(144) 评论(0) 推荐(0) 编辑