class Solution(object): def countAndSay(self, n): """ :type n: int :rtype: str """ s = "1" for i in range(0,n-1): current = "" count = 0 ctstr = "" fo ...
分类:
其他好文 时间:
2018-06-18 16:03:43
阅读次数:
149
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' axios.defaults.transformRequest = [data=> { let ret = '' fo... ...
分类:
移动开发 时间:
2018-06-13 18:10:31
阅读次数:
1030
错误信息: [root@localhost network-scripts]# service network restart Shutting down interface eth0: ./network-functions: line 78: .: ifcfg-eth0: file not fo ...
分类:
Web程序 时间:
2018-06-13 11:43:43
阅读次数:
812
讲起这几个shell内置函数,有段搞笑的故事,博主本身学习linux的时候不专心,所以脚本很烂。。 有一天在玩一款拳皇的时候,听到continue一词,让博主很惊讶。至此开启爱上脚本的道路。 上简单的测试 [root@localhost day1]# cat ss.sh #!/bin/bash fo ...
分类:
其他好文 时间:
2018-06-12 18:34:36
阅读次数:
157
WinForm导出文件为Word、Excel、文本文件的方法 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Fo ...
/* * 反射获取私有的构造方法运行 * 不推荐,破坏了程序的安全性,封装性 * 暴力私有 */ public class ReflectDemo4 { public static void main(String[] args)throws Exception { Class c=Class.fo... ...
分类:
编程语言 时间:
2018-06-06 22:14:25
阅读次数:
137
写在前面 原生JS是原理,框架是迎合业务需求的重要关键工具 本文是整理工作及学习中理解的基础和难点,便于多方位理解功能模块整合和使用 不定期更新 行文仓促,文中有错误在所难免,欢迎诸位指正 transform实现图片旋转木马3D 功能代码摘自网络 JavaScript 方法 forEach() fo ...
分类:
Web程序 时间:
2018-06-02 23:56:28
阅读次数:
391
p = [i for i in range(2,100)] #建立2-99的列表 for i in range(3,100): #1和2都不用判断,从3开始 for j in range(2, i): if i%j == 0: p.remove(i) break print(p) p = [i fo ...
分类:
编程语言 时间:
2018-06-02 15:48:03
阅读次数:
129
英特尔® Software Guard Extensions 教程系列:第一部分,英特尔® SGX 基础 from:https://software.intel.com/zh-cn/articles/intel-software-guard-extensions-tutorial-part-1-fo ...
分类:
其他好文 时间:
2018-05-22 15:05:12
阅读次数:
979
英特尔® Software Guard Extensions 教程系列:第一部分,英特尔® SGX 基础 from:https://software.intel.com/zh-cn/articles/intel-software-guard-extensions-tutorial-part-1-fo ...
分类:
其他好文 时间:
2018-05-22 14:52:22
阅读次数:
414