11 2017 档案

摘要:#1.字段设置当前时间: alter table `asset` modify createTime DATETIME DEFAULT CURRENT_TIMESTAMP; #2.字段在每次更新的时候设置当前时间: alter table `asset` modify updateTime DATE 阅读全文
posted @ 2017-11-17 16:14 HexOxZhw 阅读(154) 评论(0) 推荐(0)
摘要:1.摄像机距离要渲的物体太远,则在katana中的摄像机看不到物体,那么当然选不出来,所以我们要设置一下摄像机的远裁点的值。 具体做法,katana中在摄像机之后添加一个opscript(里面是lua语言),Interface.setAttr("geometry.far",DoubleAttribu 阅读全文
posted @ 2017-11-15 15:50 HexOxZhw 阅读(135) 评论(0) 推荐(0)
摘要:1.析构问题: python import gc #del之后 调用gc.collect() #当有数据写入硬盘的时候,一定要显式清空变量内的数据 templist = templist[:] del templist gc.collect() 2.2b 语法 class UpperAttrMeta 阅读全文
posted @ 2017-11-10 15:09 HexOxZhw 阅读(282) 评论(0) 推荐(0)