#!/usr/bin/env python # encoding: utf-8 import datetime import os import shutil import subprocess import time import zipfile # 数据库用户名 db_user = "root" ...
分类:
数据库 时间:
2021-06-02 11:05:03
阅读次数:
0
源代码如下: BEGIN DECLARE i INT; DECLARE time_1 datetime; DECLARE ID_1 int; DECLARE charge_1 FLOAT; DECLARE length_1 FLOAT; DECLARE err_1 FLOAT; DECLARE RS ...
分类:
其他好文 时间:
2021-05-25 18:31:26
阅读次数:
0
1. 代码如下: ($是命令行提示符) $ #目录结构 $ tree . ├── a.py └── impt.py 0 directories, 2 files # impt.py import sys import importlib from importlib.util import Lazy ...
分类:
编程语言 时间:
2021-05-25 18:05:28
阅读次数:
0
1 #!/usr/bin/python3 2 #coding=utf-8 3 4 import sys 5 import os 6 import re 7 8 def renamefile(name1,name2): 9 os.rename(name1,name2) 10 11 def checkf ...
分类:
编程语言 时间:
2021-05-25 17:42:30
阅读次数:
0
https://cloud.google.com/storage/docs/gsutil_install#deb yum install google-cloud-sdk yum install gcc python3-devel python3-setuptools redhat-rpm-conf ...
分类:
其他好文 时间:
2021-05-24 16:44:17
阅读次数:
0
背景:虽然linux有自带python2.7 但是很多时候需要用到python3,故需要在linux上重新安装python3,由于python3的版本太高,由于出现一些问题,故尽量安装python3.6版 以下详细介绍以下python3.6.1的安装过程。 1.下载安装包,可以直接wget http ...
分类:
编程语言 时间:
2021-05-24 16:32:17
阅读次数:
0
1.arrow python的时间处理库,相对于time和datetime等库而言,语法更加简洁。参考文章 #安装 pip install arrow 注意:arrow库1.0版本后,timestamp方法的语法和低版本有点不太一样(目前发现的一个小bug) 2.pysnooper Python调试 ...
分类:
编程语言 时间:
2021-05-24 15:49:46
阅读次数:
0
Qt提供了库函数toMSecsSinceEpoch将系统时间更改为时间戳 //将当前系统时间转为时间戳 QDateTime dateTime = QDateTime::currentDateTime(); qint64 epochTime = dateTime.toMSecsSinceEpoch() ...
分类:
其他好文 时间:
2021-05-24 13:23:47
阅读次数:
0
#json#time、datetime#os、sys#randomimport os# os.rename('m1.py','M1.py')# os.remove()#删除文件,不能删除文件夹# os.rmdir('test')#删除空文件夹的# os.mkdir('cars/bmw') #创建文件 ...
分类:
编程语言 时间:
2021-05-24 13:21:58
阅读次数:
0
比较运算符: == != < > <= >= 逻辑运算符 或与非 or and not x or y : x为true,则不计算y的值,直接返回ture x为false,则返回y的值 x and y: x为ture,则返回y的值, x为false,则不计算y,直接返回false x not y: x ...
分类:
编程语言 时间:
2021-05-24 12:45:55
阅读次数:
0