先来看个例子: ~~~~ define TARGET_LITTLE_ENDINA 1 define TARGET_BIG_ENDINA 0 ifdef TARGET_LITTLE_ENDINA call little endina function else call big endina func ...
分类:
其他好文 时间:
2018-04-28 22:25:24
阅读次数:
177
WTForms WTForms是一个支持多个web框架的form组件,主要用于对用户请求数据进行验证。 安装wtforms : pip3/pip install wtforms 用户登录/注册示例 项目目录结构 用户登录 当用户登录时候,需要对用户提交的用户名和密码进行多种格式校验。 如: 用户不能 ...
分类:
其他好文 时间:
2018-04-28 22:13:18
阅读次数:
175
一、基础 正则表达式本身也和python没有什么关系,就是匹配字符串内容的一种规则。 正则表达式 一说规则我已经知道你很晕了,现在就让我们先来看一些实际的应用。在线测试工具 http://tool.chinaz.com/regex/ 字符组 : [字符组] 在同一个位置可能出现的各种字符组成了一个字 ...
分类:
其他好文 时间:
2018-04-28 22:12:08
阅读次数:
196
就其本质而言,正则表达式(或 RE)是一种小型的、高度专业化的编程语言,(在Python中)它内嵌在Python中,并通过 re 模块实现。正则表达式模式被编译成一系列的字节码,然后由用 C 编写的匹配引擎执行。 匹配案例: 元字符之字符集[]: ret=re.findall('a[bc]d','a ...
分类:
编程语言 时间:
2018-04-28 18:00:37
阅读次数:
189
改变字段长度: ALTER table schema.table_name ALTER column_name set data type VARCHAR(10); call sysproc.admin_cmd('reorg table schema.table_name '); call sysp... ...
分类:
其他好文 时间:
2018-04-28 14:30:26
阅读次数:
142
开启idea自动make/build功能 1、CTRL + SHIFT + A --> 查找make project automatically --> 选中 2、CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.whe ...
分类:
编程语言 时间:
2018-04-28 14:29:52
阅读次数:
151
内部实现:functionClassA(sColor){this.color=sColorthis.sayColor=function(){console.log(this.color)}}functionClassB(sName){this.name=sNamethis.sayName=function(){console.log(this.name)}}functionClassC(sColo
分类:
编程语言 时间:
2018-04-28 11:51:30
阅读次数:
168
存储过程 procedure 可以理解为一个处理增删改,没有返回值得函数 创建存储过程的基本语法 create procedure 过程名 (【参数列表】) begin --过程体 end 存储过程主体只有一条语句的话,可以省略begin end create procedure pro_1() s ...
分类:
数据库 时间:
2018-04-28 11:50:22
阅读次数:
151
Problem Statement Snuke loves constructing integer sequences. There are N piles of stones, numbered 1 through N. The pile numbered i consists of ai st ...
分类:
其他好文 时间:
2018-04-28 01:30:11
阅读次数:
262
原文:https://aichamp.wordpress.com/2016/11/13/handeling-importerror-cannot-import-name-pywrap_tensorflow/ 问题:importing tensotflow in python cli 中正常 但在ju ...
分类:
其他好文 时间:
2018-04-27 19:59:24
阅读次数:
1866