- 博客(10)
- 资源 (18)
- 收藏
- 关注
原创 tomcat配置通过域名访问项目
tomcat配置通过域名访问项目,是修改conf/server.xml里面的配置信息实现。具体如下:(1)修改Connector节点的port属性值<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443...
2019-06-26 17:24:47 1928
原创 Python对文件的读写操作
Python使用open函数来读写文件,open函数的第一个参数是文件名,第二个参数是可选的,有4种常见模式:(1)r打开一个文件来读数据,这是默认模式;(2)w打开一个文件来写数据,如果文件已有数据,则会先清空数据;(3)a打开一个文件向文件末尾追加数据;(4)x打开一个新文件来写数据,如果文件已存在则失败;第2至4种模式如果第一个参数指定的文件不存在,则会先创建一个空文件。...
2019-06-23 23:02:07 1379
原创 模板引擎Jinja2的基本用法
Flask提供的模板引擎为Jinja2,易于使用,功能强大。模板仅仅是文本文件,它可以生成任何基于文本的格式(HTML、XML、CSV、LaTex 等等)。它并没有特定的扩展名, .html 或 .xml 都是可以的。模板包含 变量 或 表达式 ,这两者在模板求值的时候会被替换为值。模板中还有标签,控制模板的逻辑。Jinja2文档:http://docs.jinkan.org/docs/...
2019-06-23 14:53:32 1189
原创 使用Flask构建一个Web应用
Flask是一个使用Python编写的轻量级Web应用框架。一、安装Flask以管理员身份,打开命令提示符窗口,输入下面命令py -3 -m pip install flask这个命令会连接到PyPI网站下载和安装Flask模块,以及Flask依赖的几个模块:Werkzeug、MarkupSafe、Jinja2、itsdangerous、click。安装完成后,在命令提示符窗口...
2019-06-23 11:15:26 8563
原创 Python函数使用
Python函数用def指定函数名,可以指定输入参数,可以指定参数的默认值,也可以用return指定返回值。调用时除了默认的位置赋值,也可按关键字赋值。一、函数不带参数、没有返回值def hello(): print("hello world")二、函数带参数、没有返回值def hello(name): print("hello,", name)三...
2019-06-22 23:03:31 183
原创 Python的4个内置数据结构
Python提供了4个内置数据结构(内置指可以直接使用,无需先导入),可以保存任何对象集合,分别是列表、元组、字典和集合。一、列表有序的可变对象集合。1、列表的创建例子list1 = []list2 = ['hello', 123]list3 = [[1,2],['a','b']]2、列表常用方法L.index(v [, begin[, end]]) 返回对应元素的...
2019-06-17 14:29:09 220
原创 Windows下Python3.7的安装
1、下载Python3官网地址:www.python.org当前最新版本为Python 3.7.3。Windows下有个6个下载链接Windows x86-64 embeddable zip fileWindows x86-64 executable installerWindows x86-64 web-based installerWindows x86 embeddable ...
2019-06-14 18:31:37 3036
原创 Quartz.NET入门
Quartz.NET是一个开源的作业调度框架。官网地址:https://www.quartz-scheduler.net/目前最新版本为3.0.7,需要.NET Framework 4.5.2及更高版本以上。.NET Framework 4.0及以下可以用版本2.6.2。本文用的是2.6.2版本,下面为入门例子。1、创建2个简单任务Hello1Job.cspublic cla...
2019-06-03 10:55:31 1224
原创 .net连接Oracle
通过网上了解到.net连接Oracle主要有3种方法。(1)System.Data.OracleClient微软的System.Data.OracleClient可以直接引用,但是VS会提示“System.Data.OracleClient.OracleConnection”已过时。(2)Oracle.DataAccess.Client也叫ODP.net,是Oracle提供的数据库访问类库...
2019-06-03 09:40:37 2885
原创 .net4.0使用Dapper操作MySql
准备使用Dapper操作MySql,由于电脑只有vs2010,所以需要Dapper和MySql组件支持.net 4.0。经过一番测试,终于弄出一个DEMO。1、操作MySql需要用MySql.Data.dll。MySql.Data.dll有多个版本,官网关于版本的说明链接如下:https://dev.mysql.com/doc/connector-net/en/connector-net...
2019-06-02 15:06:44 1225
PL/SQL美化器规则文件,用于格式美化sql语句
2022-06-09
开源.NET FTP组件edtFTPnet.dll
2013-09-26
HTML解析工具Html Agility Pack v1.4.6
2013-09-18
文件比对工具WinMerge v2.14
2013-09-18
SQLite数据库管理工具SQLiteStudio 2.1.4
2013-09-18
.net程序反编译工具ILSpy 2.1
2013-09-18
读写Excel的组件npoi
2013-07-26
CnPlugin_1.5.4.rar
2013-04-16
winform制作的精美时钟
2013-03-08
winform 为图片添加当月的日历并设为壁纸
2013-02-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人