摘要: 转至:https://blog.csdn.net/weixin_43943977/article/details/102691392 1、灰色樱花树 from turtle import * from random import * from math import * def tree(n,l): 阅读全文
posted @ 2019-12-31 14:31 齐天大圣打妖怪 阅读(514) 评论(0) 推荐(0)
摘要: 1、去除重复语句 delete from ZS_PC_DJWD a where (a.ST_DATE,a.MAX_VALUE,a.DEVICE_CODE) in (select ST_DATE,MAX_VALUE,DEVICE_CODE from ZS_PC_DJWD group by ST_DAT 阅读全文
posted @ 2019-12-27 09:44 齐天大圣打妖怪 阅读(147) 评论(0) 推荐(0)
摘要: 1、指定时间,每天定时运行 def func(): main_fun() ##主要的函数 #如果需要循环调用,就要添加以下方法 timer = threading.Timer(86400, func) #timer = threading.Timer(180, func) timer.start() 阅读全文
posted @ 2019-12-23 13:26 齐天大圣打妖怪 阅读(552) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zllnau66/article/details/81742798 这个博客也不错 转至http://bluewhale.cc/2016-08-21/python-data-cleaning.html 数据清洗是一项复杂且繁琐(kubi)的工作,同时也是整 阅读全文
posted @ 2019-12-11 13:28 齐天大圣打妖怪 阅读(213) 评论(0) 推荐(1)
摘要: 1、双y轴 x = np.arange(0., np.e, 0.01) y1 = np.exp(-x) y2 = np.log(x) fig = plt.figure() ax1 = fig.add_subplot(111) ax1.plot(x, y1) ax1.set_ylabel('Y val 阅读全文
posted @ 2019-12-10 11:44 齐天大圣打妖怪 阅读(886) 评论(0) 推荐(0)
摘要: import osos.walk(path) path是指想要遍历的文件夹的路径 这个函数得到的结果是一个或多个tuple,个数取决于路径下是否有文件夹:如果没有文件夹的话,那么只有一个tuple,如果有的话,假如有3个,那么就会有4个tuple。 而每个tuple中有三项: 1.当前文件夹的路径( 阅读全文
posted @ 2019-12-03 11:52 齐天大圣打妖怪 阅读(1311) 评论(0) 推荐(0)
摘要: 1、hostname指令 2、id 阅读全文
posted @ 2019-11-29 15:17 齐天大圣打妖怪 阅读(113) 评论(0) 推荐(0)
摘要: 1、unsupported operand type(s) for *: 'float' and 'decimal.Decimal' from decimal import Decimal coef = Decimal(float(dt[0][0])) #将浮点型转化为精度型 oracle转化的数据 阅读全文
posted @ 2019-11-22 15:07 齐天大圣打妖怪 阅读(515) 评论(0) 推荐(0)
摘要: cd .. 返回上一级目录 cd ../.. 返回上两级目录 cd或cd ~ 返回home目录 cd - 目录名 返回指定目录 一、linux 通用格式 #指令主体 [选项] [操作对象] 一个主体可以包含多个选项,操作对象也可以多个. 二、.基础指令 1.ls [路径:相对路径与绝对路径 相对:r 阅读全文
posted @ 2019-11-11 10:31 齐天大圣打妖怪 阅读(185) 评论(0) 推荐(0)
摘要: #导入需要使用到的数据模块 import pandas as pd import cx_Oracle #读入数据 filepath = 'E:\_DataSet\catering_sale.xls' data = pd.read_excel(filepath) #建立数据库连接 db =cx_Ora 阅读全文
posted @ 2019-11-04 14:55 齐天大圣打妖怪 阅读(254) 评论(0) 推荐(0)