
脚本开发
python、shell、定时器、awk等脚本开发
Bestest~
学习 分享 交流 记录 成长
展开
-
python连接mysql数据库——<一>
import pandas as pdimport pymysql class DataBase(object): def __init__(self,name,password): # 创建数据库连接 self.conn = pymysql.connect('localhost','root',str(password),str(name),charset='utf8mb4') # 创建cursor对象 self.cu原创 2020-10-14 15:20:28 · 156 阅读 · 0 评论 -
windows 64位安装Pygame的方法
一:当前环境即python3.6 pip9.0.1 本人电脑windows64位二、选择下载需要的Pygame1.Pygame下载网址1:https://bitbucket.org/pygame/pygame/downloads/2.Pygame下载网址2:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame因为电脑python版本...原创 2019-08-10 16:14:05 · 1498 阅读 · 1 评论 -
shell定时删除tomcat日志和nginx日志信息
一、shell脚本#!/bin/bash. /etc/profile. ~/.bash_profileprocess_name=javatomcat_path=/usr/local/tomcatnginx_path=/usr/local/nginxpid= `ps -ef | grep $process_name | grep -v grep | awk '{print $2}'`echo $pidif [ -n "$pid" ];then { echo "-原创 2020-07-29 18:58:50 · 221 阅读 · 0 评论