Dependency Injection: Constructor vs Property Dependency injection is one of my favourite programming patterns for large projects. Among other things, ...
分类:
其他好文 时间:
2020-04-01 19:19:21
阅读次数:
66
不止我有这种感觉:https://blog.nfz.moe/archives/coolapk in my mind.html 为什么那么多人退酷安:https://www.zhihu.com/question/286300925/answer/1006997826 3年前还是很和气的 自18年,许多 ...
分类:
其他好文 时间:
2020-04-01 10:28:41
阅读次数:
96
1、官网下载Mysql压缩包 2、解压到你要想安装的目录下 3、把Mysql的bin目录添加到系统和用户变量环境的path中 4、在Mysql目录下新建配置文件my.ini。用记事本编辑好再改后序,文本内容如下: [mysqld] # 设置3306端口 port=3306 # 自定义设置mysql的 ...
分类:
数据库 时间:
2020-03-31 23:14:29
阅读次数:
152
Python MySQL - mysql-connector 驱动 MySQL 是最流行的关系型数据库管理系统,如果你不不熟悉 MySQL,可以阅读我们的 MySQL 教程。 本章节我们为大家介绍使用 mysql-connector 来连接使用 MySQL, mysql-connector 是 My ...
分类:
数据库 时间:
2020-03-31 19:09:11
阅读次数:
101
binlog_format = ROW transaction-isolation="READ-COMMITTED" sync_binlog = 1 innodb_flush_log_at_trx_commit = 1 query_cache_size = 0 query_cache_type = ...
分类:
其他好文 时间:
2020-03-31 17:31:30
阅读次数:
101
环境旧版:mariadb-5.5新版:mariadb-10.1升级数据库1.备份数据库mysqldump-uroot-p--skip-lock-table--events--all-databases>/data/all.dump2.卸载旧版数据库yumremovemariadb-serverrm-f/etc/my.cnfrm-rf/var/lib/mysql/3.升级新版数据库配置mari
分类:
数据库 时间:
2020-03-31 12:26:08
阅读次数:
112
virtualenv 是一个创建隔绝的Python环境的工具。virtualenv创建一个包含所有必要的可执行文件的文件夹,用来使用Python工程所需的包。 安装 pip install virtualenv 基本使用 为一个工程创建一个虚拟环境: $ cd my_project_dir $ vi ...
分类:
移动开发 时间:
2020-03-31 12:03:16
阅读次数:
79
一.闭包函数 一个函数在另一个函数体内,就是嵌套函数 我把一个函数叫做内部函数,另一个函数叫做外部函数 内部函数可以调用外部函数所有的变量和参数这就叫做闭包函数 1.第一种给给函数传值 传参 # def my_len(x): # print(x) # # n = 0 # # for i in x: ...
分类:
其他好文 时间:
2020-03-30 11:21:25
阅读次数:
67
#!/usr/bin/evn python# Aothor Jackname ="my \tname IS {name},i am {year}"print(name.capitalize())#大写首字母,中间转为小写print(name.count("a"))print(name.center( ...
分类:
其他好文 时间:
2020-03-29 19:48:39
阅读次数:
84
调试,高级--step into my code ,只调试自己写的代码,shux,各种step操作debugdebug调试IDEAstep into mycodefram drop 可以扔掉栈帧,从新开始,但是有全局变量观察变化必须重头开始step out 结束当前方法的调试调到这个方法所在代码行的... ...
分类:
其他好文 时间:
2020-03-29 01:39:28
阅读次数:
94