摘要:
ubuntu安装gitlab 安装依赖 sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates sudo apt-get install -y postfix //邮件服务 安装邮件服务的时候会出 阅读全文
摘要:
ubuntu 18.04 falcon安装使用 1、安装mysql数据库redis apt-get install -y redis apt-get install -y mysql-server 2、安装go语言环境 apt-get install -y golang #注意:如果安装open-f 阅读全文
摘要:
use mysql; update user set authentication_string=PASSWORD("密码") where user='root'; update user set plugin="mysql_native_password"; flush privileges; q 阅读全文
摘要:
Ubuntu18.04 安装 Docker CE 添加使用 https 传输的软件包和 CA证书 sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common 阅读全文
摘要:
Configparser模块用来读取配置文件,配置文件的格式与windows下的ini配置文件类似,可以包含一个或多个节(section), 每个节可以有多个参数(键=值)。使用的配置文件的好处就是不用在程序员写死,可以使程序更灵活。 configparser函数常用方法: 读取配置文件: conf 阅读全文
摘要:
1.切割字符 ls = "asdada.ad" print(ls[ls.rfind('.')+1:]) 2.os.path模块 import os.path def file_extension(path): return os.path.splitext(path)[1] print file_e 阅读全文