随笔分类 - DEV_Python
摘要:#!/usr/bin/python# -*- coding: UTF-8 -*- import timeimport refrom datetime import datetime, timezone, timedeltaimport pytz date_time = r'([0-9]{4})[/-
阅读全文
摘要:import ctypes handle = ctypes.windll.kernel32.GetStdHandle(-11) # -11 for output -10 for input -12 for error ctypes.windll.kernel32.SetConsoleTextAttr
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import os import pathlib import shutil import sys class file_manager(): cls_working_folder = 'c:\\' @classme
阅读全文
摘要:import sys import os root_path = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) + '\\' data_path = root_path + 'data\\'
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import time def _get_strftime_( t ): return time.strftime("%Y%m%d %H:%M:%S", time.localtime(t)) def _get_mkt
阅读全文
摘要:#!/usr/bin/python# -*- coding: UTF-8 -*- import pathlibimport pandas as pd print("please input the 1stfile to compare")csv_from = input() print("pleas
阅读全文
摘要:import pandas as pd import numpy as np from lib_001_decorator_log_funcname import decorator_log_funcname from env_config import * csv_a = data_path +
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- from lib_config import * from lib.lib_x_0002_decorator_log_funcname import decorator_log_funcname import pan
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import time from lib_001_decorator_log_funcname import decorator_log_funcname d1 = 10 + 2 s1 = "456" @decora
阅读全文
摘要:def decorator_log_funcname( func ): def wrapper(*arg, **kw): print("") print("-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-") print( "run",
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- from lib_001_decorator_log_funcname import decorator_log_funcname s1 = 'hello s1' s2 = "hello s2" s3 = ''' g
阅读全文
摘要:def _test_p_get_all_driver(): l = [] for i in range(97, 123): d = chr(i) + ':\\' if os.path.isdir( d ): l.append(d) return l
阅读全文