摘要: 字符串的类型函数: 阅读全文
posted @ 2017-10-16 18:02 MR-Yong 阅读(151) 评论(0) 推荐(0)
摘要: 在test.log写入字符串类容:'''f = open("test.log","w")f.write("this is the first line\n")f.write("this is the second line\n")f.write("this is the 3 line\n")f.wr 阅读全文
posted @ 2017-10-16 17:57 MR-Yong 阅读(159) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python#_*_ coding: utf-8 _*_ import sysprint sys.argv import lib print('index') 字符串:移除空白 strip分割 split长度 len(obj)索引 obj[1]切片 obj[1:],ob 阅读全文
posted @ 2017-10-13 11:48 MR-Yong 阅读(164) 评论(0) 推荐(0)