摘要: Python 的字符串内建函数 Python 的字符串常用内建函数如下: capitalize()将字符串的第一个字符转换为大写 center(width, fillchar) count(str, beg= 0,end=len(string)) bytes.decode(encoding="utf 阅读全文
posted @ 2017-07-18 10:48 运维研发 阅读(577) 评论(0) 推荐(0)
摘要: 字符编码 我们已经讲过了,字符串也是一种数据类型,但是,字符串比较特殊的是还有一个编码问题。 因为计算机只能处理数字,如果要处理文本,就必须先把文本转换为数字才能处理。最早的计算机在设计时采用8个比特(bit)作为一个字节(byte),所以,一个字节能表示的最大的整数就是255(二进制1111111 阅读全文
posted @ 2017-07-18 09:55 运维研发 阅读(251) 评论(0) 推荐(0)
摘要: 当我们编写Python代码时,我们得到的是一个包含Python代码的以.py为扩展名的文本文件。要运行代码,就需要Python解释器去执行.py文件。 由于整个Python语言从规范到解释器都是开源的,所以理论上,只要水平够高,任何人都可以编写Python解释器来执行Python代码(当然难度很大) 阅读全文
posted @ 2017-07-18 09:44 运维研发 阅读(214) 评论(0) 推荐(0)
摘要: 本节内容 为什么要用版本控制? 假设你在的公司要上线一个新功能,你们开发团队为实现这个新功能,写了大约5000行代码,上线没2天,就发现这个功能用户并不喜欢,你老板让你去掉这个功能,你怎么办?你说简单,直接把5000行代码去掉就行了,但是我的亲,说的简单,你的这个功能写了3周时间,但你还能记得你是新 阅读全文
posted @ 2017-07-18 09:25 运维研发 阅读(377) 评论(0) 推荐(0)
摘要: usually we need to export the database tables to backup and others use. So we must know what to do export those data .just exmple when I export the or... 阅读全文
posted @ 2015-09-18 17:32 运维研发 阅读(186) 评论(0) 推荐(0)
摘要: We usually meet the package too large to upload internat space when upload have a limited .Sowe need to split the package into several pieces,then you... 阅读全文
posted @ 2015-09-18 10:37 运维研发 阅读(140) 评论(0) 推荐(0)
摘要: I logged into to the arcsight command center ,however I found an unexpected error occurred when contacting the server .Please help me to analysis the ... 阅读全文
posted @ 2015-09-18 10:04 运维研发 阅读(483) 评论(0) 推荐(0)