Caomeinico Caomeinico
4年前
shell-定义一个颜色输出字符串函数
写法1!/bin/bashfunctionechocolor()if$1"green";thenechoe"\03332;40m$2\0330m"elif$1"red";thenechoe"\03331;40m$2\0330m"fiechocolor
go语言中,Printf()、Sprintf()、Fprintf()函数的区别用法是什么?
Printf()、Sprintf()、Fprintf()函数的区别用法是什么?  都是输出格式化字符串,只是输出到的目标不一样:    Printf()是把格式化字符串输出到标准到标准输出(一般是屏幕,可以重定向)    Printf()是和标准输出文件(stdout)关联的,Fprintf则没有这个限制    Sprintf()是
Stella981 Stella981
4年前
Spring Boot 2.x基础教程:使用Flyway管理数据库版本
之前已经介绍了很多在SpringBoot中使用MySQL的案例,包含了SpringBoot最原始的JdbcTemplate(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.didispace.com%2Fspringbootlearning2131%2F)、Spr
Stella981 Stella981
4年前
Flask中无法在其他函数中查询Sqlachemy的解决办法
报错信息部分截取:File"D:\python3.5\lib\sitepackages\flask_sqlalchemy\__init__.py",line912,inget_app'Noapplicationfound.Eitherworkinsideaviewfunction
Stella981 Stella981
4年前
Macos mysql 8.0.11 添加配置文件
mac安装mysql后,没有配置文件,如果需要添加配置文件,需要在/etc目录下面添加my.cnf文件。添加方法打开文件命令:sudovi /etc/my.cnf文件添加内容:\client\defaultcharactersetutf8\mysqld\charactersetserveru
Stella981 Stella981
4年前
Bifrost 位点管理 之 异构中间件实现难点(1)
Bifrost面向生产环境的MySQL同步到Redis,MongoDB等服务的异构中间件(https://my.oschina.net/u/4233862/blog/3138875)源码下载(你的点击star就是对Bifrost最大的支持!!!):Github(https://www.oschina.net
Wesley13 Wesley13
4年前
Java中静态代码块、构造代码块、构造函数、普通代码块
转载来源http://www.cnblogs.com/ysocean/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Fysocean%2F)1、静态代码块①、格式  在java类中(方法中不能存在静态代码块)使用s
Wesley13 Wesley13
4年前
MySQL Cluster7.2.4 集群配置
启动顺序:管理服务器存储节点SQL节点a、启动管理节点rmmysql/mysqlcluster/ndb_1_config.bin.1不是必须的,如果config.ini有改动则要加上ndb\_mgmdf/usr/local/mysql/clusterconf/config.inib、启动存储节点nd
Wesley13 Wesley13
4年前
mysql基础知识语法汇总整理(二)
mysql基础知识语法汇总整理(一)(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fcxx8181602%2Fp%2F9525950.html)insert/insert/insertinto表名(字段列表)
Stella981 Stella981
4年前
Python 4.函数参数 返回值与文档查看(基础篇)
本章大纲:(以后文笔格式都会在开头有个大纲)\五大参数普通参数默认参数关键字参数收集参数收集参数解包问题关键字收集参数关键字收集参数解包问题返回值文档查看普通参数普通参数又名