python3 一些有用的函数

字符串函数 join 将序列中的元素以指定的字符链接生成一个新的字符串. 输入:web print(", ".join(["Hello", "world"])) 输出:ruby Hello,world replace 用一个新字符串替换原字符串中的一个子字符串。 输入:svg print("Hello ME".replace("ME", "world")) 输出:函数 Hello world st
相关文章
相关标签/搜索