摘要: 首先,简单介绍下Git Stash命令的用法,详细的用法在man文档中有相关介绍,下面我来说明常见的使用。git stash: 备份当前的工作区的内容,从最近的一次提交中读取相关内容,让工作区保证和上次提交的内容一致。同时,将当前的工作区内容保存到Git栈中。git stash pop: 从Git栈 阅读全文
posted @ 2018-06-06 13:52 leonardchen 阅读(1875) 评论(0) 推荐(0) 编辑
摘要: 文章转自 https://www.cnblogs.com/ygj0930/p/7649207.html 阅读全文
posted @ 2018-04-23 10:02 leonardchen 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: link:https://www.cnblogs.com/huguodong/p/6611602.html 阅读全文
posted @ 2018-04-19 11:02 leonardchen 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 最近在做支付宝功能,折腾了半天,终于找到解决办法!现将链接贴在这里http://www.mamicode.com/info-detail-2212321.html 阅读全文
posted @ 2018-04-03 11:02 leonardchen 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 一、数学相关 1、绝对值:abs(-1)2、最大最小值:max([1,2,3])、min([1,2,3])3、序列长度:len('abc')、len([1,2,3])、len((1,2,3))4、取模:divmod(5,2)5、乘方:pow(2,3)6、浮点数:round(1) 二、功能相关 1、函 阅读全文
posted @ 2018-03-07 10:20 leonardchen 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 下面贴出事例代码 阅读全文
posted @ 2017-12-27 09:17 leonardchen 阅读(5701) 评论(0) 推荐(0) 编辑
摘要: 初始化方法中为什么会用到**kwargs,可参考这篇文章https://www.cnblogs.com/fengmk2/archive/2008/04/21/1163766.html 阅读全文
posted @ 2017-12-22 15:34 leonardchen 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 最近在做前端界面时遇到一个需求,要在前端界面实现数据库数据的excel导出,经过多方查阅资料终于找到解决方法! 下面贴出导出excel函数的代码片段。 # -*- coding: utf-8 -*- import MySQLdb import xlwt import StringIO from dj 阅读全文
posted @ 2017-11-14 14:13 leonardchen 阅读(4499) 评论(0) 推荐(0) 编辑
摘要: range 函数说明:range([start,] stop[, step]),根据start与stop指定的范围以及step设定的步长,生成一个序列。range示例: xrange 函数说明:用法与range完全相同,所不同的是生成的不是一个数组,而是一个生成器。xrange示例: 由上面的示例可 阅读全文
posted @ 2017-11-06 21:14 leonardchen 阅读(4624) 评论(0) 推荐(0) 编辑
摘要: #--*--conding:utf-8 --*--#jshon这个模块就是做序列化处理的,主要用到json模块的四种方法#1、dumps#2、loads#3、dump#4、load#先介绍dumps方法#通过jshon的dumps的模块可以把特定的对象序列化处理为字符串# import json# 阅读全文
posted @ 2017-08-30 14:40 leonardchen 阅读(341) 评论(0) 推荐(0) 编辑