摘要: 引用自:https://blog.csdn.net/u013061183/article/details/78015673 用Python循环创建多个变量, 如创建 a1= 、a2= 、a3= 、a4= 、a5= 或 self.a1= 、self.a2= 、 self.a3= 一. 可以通过pyth 阅读全文
posted @ 2018-06-08 09:15 Presley 阅读(8647) 评论(0) 推荐(0) 编辑
摘要: swapcase 字符串大写转换为小写小写转换为大写。 阅读全文
posted @ 2018-06-07 22:39 Presley 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 一、replace替换 阅读全文
posted @ 2018-06-07 22:25 Presley 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 引用自:https://blog.csdn.net/zhaoya_huangqing/article/details/48036839 一、在组成SQL语句并发送命令时完全按照Python中的样式去传递,这样在MySql中执行的时候就会遇到错误的命令,由单引号或者双引号引起。因此应该在组成字符串之前 阅读全文
posted @ 2018-06-07 17:54 Presley 阅读(6743) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.jb51.net/article/91365.htm 摘自:https://www.cnblogs.com/liuq/p/6211005.html 一、在python中,除了time模块外还有datetime模块,也可以方便的操作时间,比如用datetime模块来显示当前 阅读全文
posted @ 2018-06-07 10:51 Presley 阅读(203) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/baidu_34051990/article/details/60963947 阅读全文
posted @ 2018-06-06 10:02 Presley 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 用相应格式的字符串将序列链接起来。 阅读全文
posted @ 2018-06-05 22:37 Presley 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一、capitalize 首字母大写 二、center 填充 三、endwith 以某个字符结尾。 阅读全文
posted @ 2018-06-05 21:57 Presley 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1+1 实际等于1.__add__(1) __abs__ 取绝对值 阅读全文
posted @ 2018-06-05 21:17 Presley 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/ywy0ywy/article/details/52733839 python2.7 httplib, urllib, urllib2, requests 库的简单使用 python2.7 httplib, urllib, urllib2, req 阅读全文
posted @ 2018-06-05 12:01 Presley 阅读(803) 评论(0) 推荐(0) 编辑