随笔分类 - Python
摘要:如下 #!/usr/local/python/bin/ptyhon # coding=utf-8 import sys,os from job.base.JobBase import ExitCode import job.base.ClientUtil as util #home文件夹创建 try
阅读全文
摘要:ngender 根据名字判断性别: repo: observerss/ngender 基于朴素贝叶斯计算的概率 pip install ngender >>> import ngender ngender.guess('赵本山') ('male', 0.9836229687547046) >>> n
阅读全文
摘要:一 安装 conda, 类似于 maven , 安装 sh 插件, 模块 wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod 777 Miniconda3-latest-Linux-x
阅读全文
摘要:import pymysql as mysql con = mysql.connect(host="127.0.0.1",port=3306,user="root",passwd="root",db="aaa",charset="utf8") mycursor = con.cursor() prin
阅读全文