摘要: 1. format() 作用:用来把变量填充到字符串里面 name = "Tom" age = 18 ——> print("我是{},今年{}岁".format(name, age)) 1. String常用方法 strip()——>去空格 replace()——>替换字符串 split()——>字 阅读全文
posted @ 2026-07-28 14:46 ZANAN 阅读(15) 评论(0) 推荐(0)