11 2017 档案

摘要:'date_test':fields.function(_datetime_all,type='datetime', string=u'测试'),函数:形式def _datetime_all(self, cr, uid, ids, field_name, arg, context=None): re 阅读全文
posted @ 2017-11-29 14:02 何双新 阅读(1145) 评论(0) 推荐(0) 编辑
摘要:零、 type()函数怎么使用type()的使用方法:type(对象)type()是接收一个对象当做参考,之后反回对象的相应类型。>>>type(1)<type 'int'> #整型>>>type('iplaypython')<type 'str'> #字符串2、type()返回值是什么类型>>>t 阅读全文
posted @ 2017-11-28 10:48 何双新 阅读(184) 评论(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 何双新 阅读(211) 评论(0) 推荐(0) 编辑
摘要:https://www.virtualbox.org/wiki/Linux_Downloads 一直在报内核出错的问题,我尝试了各种方法还是无果,猜测是版本的问题,这里推荐各位安装virtualbox-5.0以上的版本比较好1.到oracle的https://www.virtualbox.org/网 阅读全文
posted @ 2017-11-20 17:12 何双新 阅读(293) 评论(0) 推荐(0) 编辑
摘要:break 和 continue之间的区别: 在1000人中,募捐100000元,当达到10万元后结束 break 跳出当前循环,即 是终止循环,continue结束本次循环,不终止循环 #include <studio.h> #define SUM 100000 int main(){ float 阅读全文
posted @ 2017-11-18 08:16 何双新 阅读(245) 评论(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 何双新 阅读(271) 评论(0) 推荐(0) 编辑
摘要:标准的输入输出函数: putchar(输出字符) getchar(获取输入字符) printf(格式输出) scanf(格式输入) puts(输出字符串) gets(获取输入字符串) #include <studio.h> #include<math.h> int main(){ double a, 阅读全文
posted @ 2017-11-14 23:28 何双新 阅读(297) 评论(0) 推荐(0) 编辑
摘要:数据库事务的四大特性以及事务的隔离级别 本篇讲诉数据库中事务的四大特性(ACID),并且将会详细地说明事务的隔离级别。 如果一个数据库声称支持事务的操作,那么该数据库必须要具备以下四个特性: ⑴ 原子性(Atomicity) 原子性是指事务包含的所有操作要么全部成功,要么全部失败回滚,这和前面两篇博 阅读全文
posted @ 2017-11-14 08:09 何双新 阅读(185) 评论(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 何双新 阅读(158) 评论(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 何双新 阅读(397) 评论(0) 推荐(0) 编辑
摘要:'第三个按钮,上传数据到数据库 Private Sub CommandButton1_Click() str1 = "abcde" str2 = InputBox("请输入一个字符串!") If str1 = str2 Then MsgBox "它们是一样的呀!" Else MsgBox "它们是不 阅读全文
posted @ 2017-11-07 17:10 何双新 阅读(431) 评论(0) 推荐(0) 编辑
摘要:<record id="action_purchase_order_done" model="ir.actions.server"> <field name="name">取消按钮</field> <field name="model_id" ref="model_purchase_origin"/ 阅读全文
posted @ 2017-11-06 14:57 何双新 阅读(312) 评论(0) 推荐(0) 编辑
摘要:获取当前时间的代码:xml文件中<td><div align="center"><br/><strong>送检时间</strong></div></td><td><br/> <script type="text/javascript"> function getNowFormatDate() { v 阅读全文
posted @ 2017-11-04 22:10 何双新 阅读(2175) 评论(0) 推荐(0) 编辑
摘要:def init(self,cr): tools.sql.drop_view_if_exists(cr, 'custrom_product_infomation_report') cr.execute(""" create or replace view custrom_product_infoma 阅读全文
posted @ 2017-11-03 10:10 何双新 阅读(195) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示