上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 48 下一页
摘要: 零、 type()函数怎么使用type()的使用方法:type(对象)type()是接收一个对象当做参考,之后反回对象的相应类型。>>>type(1)<type 'int'> #整型>>>type('iplaypython')<type 'str'> #字符串2、type()返回值是什么类型>>>t 阅读全文
posted @ 2017-11-28 10:48 何双新 阅读(194) 评论(0) 推荐(0)
摘要: def action_cancel_sale_order(self,cr,uid,ids,context=None):self.message_post(cr, uid, ids, body=u"完结", context=context) def on_change_cust_order(self, 阅读全文
posted @ 2017-11-28 09:33 何双新 阅读(221) 评论(0) 推荐(0)
摘要: https://www.virtualbox.org/wiki/Linux_Downloads 一直在报内核出错的问题,我尝试了各种方法还是无果,猜测是版本的问题,这里推荐各位安装virtualbox-5.0以上的版本比较好1.到oracle的https://www.virtualbox.org/网 阅读全文
posted @ 2017-11-20 17:12 何双新 阅读(298) 评论(0) 推荐(0)
摘要: break 和 continue之间的区别: 在1000人中,募捐100000元,当达到10万元后结束 break 跳出当前循环,即 是终止循环,continue结束本次循环,不终止循环 #include <studio.h> #define SUM 100000 int main(){ float 阅读全文
posted @ 2017-11-18 08:16 何双新 阅读(251) 评论(0) 推荐(0)
摘要: #inlude <studio.h> int main(){ int x,y; sanf("%d",&x); if (x<0) y=-1; else if(x==0)y=0; else y=1; printf("x=%d,y=%d\n",x,y); return 0; } or #include < 阅读全文
posted @ 2017-11-16 12:02 何双新 阅读(278) 评论(0) 推荐(0)
摘要: 标准的输入输出函数: putchar(输出字符) getchar(获取输入字符) printf(格式输出) scanf(格式输入) puts(输出字符串) gets(获取输入字符串) #include <studio.h> #include<math.h> int main(){ double a, 阅读全文
posted @ 2017-11-14 23:28 何双新 阅读(306) 评论(0) 推荐(0)
摘要: 数据库事务的四大特性以及事务的隔离级别 本篇讲诉数据库中事务的四大特性(ACID),并且将会详细地说明事务的隔离级别。 如果一个数据库声称支持事务的操作,那么该数据库必须要具备以下四个特性: ⑴ 原子性(Atomicity) 原子性是指事务包含的所有操作要么全部成功,要么全部失败回滚,这和前面两篇博 阅读全文
posted @ 2017-11-14 08:09 何双新 阅读(195) 评论(0) 推荐(0)
摘要: 求5! # include <studio.h> int main(){ int i,t; t=1; i=2; while (i<=5){ t=t*i i=i+1 } printf("%d\n",t); return 0; } 求1-1/2+1/3-1/4+........+1/99-1/100的值 阅读全文
posted @ 2017-11-13 23:27 何双新 阅读(166) 评论(0) 推荐(0)
摘要: #include <studio.h> int main(){ printf("this is dog.\n"); return 0; } studio.h 表示standard input 和 output 的缩写 后缀.h是头文件意思header \n 是换行符 第二例子: #include < 阅读全文
posted @ 2017-11-12 22:41 何双新 阅读(411) 评论(0) 推荐(0)
摘要: '第三个按钮,上传数据到数据库 Private Sub CommandButton1_Click() str1 = "abcde" str2 = InputBox("请输入一个字符串!") If str1 = str2 Then MsgBox "它们是一样的呀!" Else MsgBox "它们是不 阅读全文
posted @ 2017-11-07 17:10 何双新 阅读(439) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 48 下一页