2020年7月13日

python字符串

摘要: 字符串 字符串是不可变对象 a='string' a="sting2" a=r"hello\n mm" a="""abc""" a='a\ b\ c' 字符串跨行写,加\ 字符串编码 字符串支持使用索引访问;a[0] for i in a: print(i) 可迭代(字符串,元组,数组);list[ 阅读全文

posted @ 2020-07-13 22:32 星空6 阅读(223) 评论(0) 推荐(0)

导航