07 2021 档案
摘要:代码如下 #!/usr/bin/env python import sys sys.path.append('/home/spark/opt/hive-1.2.1/lib/py') from hive_service import ThriftHive from hive_service.ttype
阅读全文
摘要:1.日期函数UNIX时间戳转日期函数: from_unixtime语法:from_unixtime(bigint unixtime[, stringformat]) 返回值: string说明: 转化UNIX时间戳(从1970-01-0100:00:00 UTC到指定时间的秒数)到当前时区的时间格式
阅读全文
摘要:脚本解释:一共需要传4个参数,oracle表用户、oracle表名、需要入库的文件、文件分割符 注意:需要在脚本所在路径下创建5个文件夹,scrip、bad、ctl、log、temp #!/bin/sh#AUTHOR:趴嘞怪#CREATEDATE:2020/08/21#illustration:直接
阅读全文
摘要:类 型 命令 作用 标准输出重定向 命令 > 文件 以覆盖的方式, 把命令的正确输出输出到指定的文件或设备当中。 标准输出重定向 命令 >> 文件 以追加的方式, 把命令的正确输出输出到指定的文件或设备当中。标准错误输出重定向 标准错误输出重定向 错误命令 2>文件 以覆盖的方式, 把命令的错误输出
阅读全文
摘要:import pymysql #导入 pymysql #打开数据库连接 db= pymysql.connect(host="localhost",user="root", password="123456",db="test",port=3307) # 使用cursor()方法获取操作游标 cur
阅读全文
摘要:#!/bin/bashsource /etc/profilesource ~/.bash_profile set -o nounsetset -o errexit #Author: gupx#Time: 2021-07-02 13:00:00#Name: test.sh#Description: s
阅读全文
摘要:import osfrom PIL import Imagefrom reportlab.pdfgen import canvasdef image_resize(img, width, height): """ 图片缩放 :param img: 图片路径 :param width: 宽 :para
阅读全文
posted @ 2021-07-01 17:01
趴嘞怪
摘要:#!/bin/bashsource /etc/profilesource ~/.bash_profile set -o nounsetset -o errexit #Author: gupx#Time: 2020-10-30 19:11:02#Name: test.sh#Description: T
阅读全文


浙公网安备 33010602011771号