1. 查看表基本结构 可简写 DESC 表名; Null:是否可用存储Null值 Key:该列是否已编制索引。PRI表示该列是表主键的一部分;UNI表示该列是UNIQUE索引的一部分;MUL表示在列中某个给定值允许出现多次 Default:该列是否有默认值,为多少 Extra:获取与给定列有关的附件 ...
分类:
数据库 时间:
2017-09-20 21:57:58
阅读次数:
193
if基本语法: if(条件){// 表达式 // 代码块 } eg: int a = 10; if(a > 1){ System.out.println("内容"); } if(){ // 代码块 }else{ // 代码块 } eg: if(score >= 90){ System.out.pri ...
分类:
其他好文 时间:
2017-09-18 17:29:09
阅读次数:
196
#include #include typedef struct node { int id; int pri; struct node *left; struct node *right; struct node *parent; }heapDataType; typedef struct { b... ...
分类:
其他好文 时间:
2017-09-16 16:14:03
阅读次数:
239
public static void main(String[] args) { Scanner input=new Scanner (System.in); System.out.println("输入一个年份"); int year=input.nextInt(); System.out.pri ...
分类:
其他好文 时间:
2017-09-15 13:36:44
阅读次数:
135
//1+2!+3!+...+20!的和 public class jiecheng{ public static void main(String args[]) { int i,s=0,a; for(i=1,a=1;i<=20;i++) { a*=i; s+=a; } System.out.pri ...
分类:
其他好文 时间:
2017-09-13 21:22:29
阅读次数:
143
## 引用输入,并在引用输入时显示文字name = input('What is your name ')## name = 'stan' print('your name is', name ) ## /为精确除法,//为整除,只留整数部分,%为取余数print('10/3 =',10/3)pri ...
分类:
编程语言 时间:
2017-09-13 18:27:14
阅读次数:
109
如何格式化日期? SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); Date dat=new Date(); //把日期转化为字符串 String str=sdf.format(dat); System.out.pri ...
分类:
编程语言 时间:
2017-09-12 16:53:24
阅读次数:
158
题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少? 程序: s=0for i in range(1,5): for j in range(1,5): for k in range(1,5): if i!=j and i!=k and j!=k: s=s+1 pri ...
分类:
其他好文 时间:
2017-09-08 21:42:38
阅读次数:
198
pconnect('127.0.0.1', 6379); //订阅 echo "订阅msg这个频道,等待消息推送... \n"; $redis->subscribe(['msg'], 'callfun'); function callfun($redis, $channel, $msg) { pri... ...
分类:
其他好文 时间:
2017-09-07 23:03:25
阅读次数:
157
得到进程的pid: ps -ef | grep process_name | grep -v "grep" | awk '{print $2}' 查看进程的所有线程 # ps mp 6648 -o THREAD,tid USER %CPU PRI SCNT WCHAN USER SYSTEM TID ...
分类:
编程语言 时间:
2017-09-07 19:36:33
阅读次数:
186