http://bbs.fishc./thread-35584-1-1.html #Python好好好 操作系统:linux和mac都自带Python解释器 ->-> -> IDLE-shell命令行: dir(__builtins__) #结果中,小写单词就是内置函数bif(built-in fun ...
分类:
编程语言 时间:
2017-05-26 00:39:18
阅读次数:
316
就是用来恐吓你的 我能想到的,最短的。且const最多的一个语句是: int const * fun(int const*const a[],const int index)const; 而这个语句还有下面若干等价语句: const int * fun(int const * const a[],c ...
分类:
其他好文 时间:
2017-05-25 14:50:41
阅读次数:
160
select2插件很好用,但是样式在其基础上改了又改都觉得不好。。。于是选择只使用它的展示框,而不使用它的下拉框,自己写一个列表来配合使用,下图为修改后的样子: 选择的样子: 限制选择个数的样子: 下面说说思路: 1、使用 $(".select").on("select2:opening", fun ...
分类:
其他好文 时间:
2017-05-25 13:19:46
阅读次数:
1259
一 循环语句: 1.1 for x in rang(n) :#rang(n)生成左闭右开区间的序列 1.2 while x 条件n: 二条件语句: if 条件表达式: elif 表达式: elif 表达式: ... else: 三 break continu 四:函数: 4.1 定义:def fun ...
分类:
编程语言 时间:
2017-05-23 23:37:55
阅读次数:
328
问题描述:在某些情况下,document.onclick在ie8浏览器下会不起作用。 问题原因:与某些第三方插件有关。 解决方案:把添加到document上的点击事件改为添加到body上的点击事件即可解决。 eg:document.onclick=fun;改为document.body.onclic ...
分类:
其他好文 时间:
2017-05-22 00:14:56
阅读次数:
146
一.DROP IF EXISTS DROP FUNCTION IF EXISTS fun;DROP TABLE IF EXISTS table; 二.数据表1.建立表CREATE TABLE test(id int(10) not null auto_increment,email char(255 ...
分类:
数据库 时间:
2017-05-21 19:50:38
阅读次数:
296
看到非常多 TX 都在问老版本号 Raitonal 软件相关的问题,可是因为产品升级的时候有非常多名字都发生了更改(比方说 Rational Rose 最新的版本号变成了 Rational Software Architect。Rational Robot 最新版本号变成了 Rational Fun ...
分类:
其他好文 时间:
2017-05-20 21:53:39
阅读次数:
707
法一:基本写法 int (&fun()) [5]; 法二:类型别名 using arrT = int[5]; arrT& fun(); 法三:尾置返回类型 auto fun() -> int(&) [5]; 法四:使用decltype关键字 int a[5] = {1,2,3,4,5}; declt ...
分类:
编程语言 时间:
2017-05-20 17:15:36
阅读次数:
188
1. 包定义 package package my.demo 2. 方法定义 fun fun sum(a: Int, b: Int): Int {//定义方法的关键字fun;方法名sum;变量名a,类型Int;变量名b,类型Int;返回值类型Int return a + b } fun sum(a: ...
分类:
其他好文 时间:
2017-05-20 13:20:46
阅读次数:
283
对于javascript中的继承,因为js中没有后端语言中的类式继承。所以js中的继承,一般都是原型继承(prototype)。 function P (name){ this.name = name; this.say = function(){ console.log('p'); } } fun ...
分类:
编程语言 时间:
2017-05-20 11:17:04
阅读次数:
116