摘要: https://blog.csdn.net/xufwind/article/details/88398863 字符串取前几位 str='123456' print(str[0:3]) >>>123 strip()方法,去除字符串开头或者结尾的空格 a = " a b c " a.strip() 'a 阅读全文
posted @ 2021-07-29 14:44 cyhui 阅读(28) 评论(0) 推荐(0) 编辑