立即学习:https://edu.youkuaiyun.com/course/play/25498/304502?utm_source=blogtoedu
\可以让 I\'m python中间的单引号正常输出
str=r'hello I\'m python(r能输出\)
list拼接‘ ’.join()来拼接效率很高
format 拼接字符串{}来占位
切片 “[] ”来进行切片
[:3]表示从头取到第2个
[ : : 2]隔一个取一个值
立即学习:https://edu.youkuaiyun.com/course/play/25498/304502?utm_source=blogtoedu
\可以让 I\'m python中间的单引号正常输出
str=r'hello I\'m python(r能输出\)
list拼接‘ ’.join()来拼接效率很高
format 拼接字符串{}来占位
切片 “[] ”来进行切片
[:3]表示从头取到第2个
[ : : 2]隔一个取一个值