4.绑定方法与非绑定方法 在类内部定义的函数分为俩大类,绑定方法以及非绑定方法 4.1绑定方法:绑定给谁,就由谁来调用,谁用就会把调用者当做第一个参数传入 绑定给对象的方法:最基本的方法,对于类所定义的一般方法基本都是绑定给对象的方法,没有被任何装饰器修饰的方法 绑定给类的方法:在类内的定义的装饰器 ...
分类:
其他好文 时间:
2018-05-12 12:40:25
阅读次数:
172
题目:同字符分组 难度:Medium 题目内容: Given an array of strings, group anagrams together. 翻译:给定一组字符串数组,按相同字符组成的字符串分为一组。 Example: 我的思路:因为要分组,那么使用map即可,相同的字符作为键,值为一个 ...
分类:
编程语言 时间:
2018-05-12 03:14:24
阅读次数:
197
PS切图https://www.cnblogs.com/xiongmanli/p/6079172.html https://tech.youzan.com/cut-boy/?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io 切图 ...
分类:
其他好文 时间:
2018-05-11 23:31:56
阅读次数:
195
1.将cert下新建一个文件将所有证书文件放在新建的文件下 例如:cert/medcard 2.配置网站的.conf文件 RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L, ...
分类:
Web程序 时间:
2018-05-10 17:31:52
阅读次数:
219
描述 You are playing one game called "Number Maze". The map of an example is shown in the following figure. In the map, there are N*N+2 cells. When the ...
分类:
其他好文 时间:
2018-05-10 14:20:57
阅读次数:
169
题目:矩阵旋转 难度:Medium 题目内容: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate t ...
分类:
编程语言 时间:
2018-05-10 00:31:03
阅读次数:
236
https://time.geekbang.org/column/intro/82?utm_source=website&utm_medium=infoq&utm_campaign=82-presell&utm_content=article-banner ...
分类:
编程语言 时间:
2018-05-08 19:23:39
阅读次数:
351
题目:在翻转有序中搜索 难度:Medium 题目内容: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] migh ...
分类:
编程语言 时间:
2018-05-06 22:19:23
阅读次数:
181
pandas时间: p1=pd.Timestamp(2018,2,3) p1输出:2018-02-03 00:00:00 p1输出类型:<class 'pandas._libs.tslib.Timestamp'> pandas时间转到时间戳: pd.Timestamp.timestamp(p1) 备 ...
分类:
其他好文 时间:
2018-05-06 17:00:18
阅读次数:
1339
转载于https://blog.csdn.net/wzp1986/article/details/72128063?utm_source=itdadao&utm_medium=referral#ops%E7%9A%84%E7%95%8C%E9%9D%A2 使用官方工具包模板 添加helm源 使用官方 ...
分类:
Web程序 时间:
2018-05-04 11:46:54
阅读次数:
626