01 2022 档案

摘要:import ctypes handle = ctypes.windll.kernel32.GetStdHandle(-11) # -11 for output -10 for input -12 for error ctypes.windll.kernel32.SetConsoleTextAttr 阅读全文
posted @ 2022-01-30 13:18 小葱饼子 阅读(49) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import os import pathlib import shutil import sys class file_manager(): cls_working_folder = 'c:\\' @classme 阅读全文
posted @ 2022-01-25 17:19 小葱饼子 阅读(29) 评论(0) 推荐(0) 编辑
摘要:Const init_info As String = "InitInfo"Const end_row_op As Integer = 100 'tmpConst end_row_holiday As Integer = 100 'tmpConst sheet_name_op As String = 阅读全文
posted @ 2022-01-23 23:43 小葱饼子 阅读(41) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- class Man(): def __init__(self, name="", good_at=[]): self._name = name self._good_at = good_at def _test(): 阅读全文
posted @ 2022-01-21 17:47 小葱饼子 阅读(44) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- class Schedule(object): def __init__(self, name=""): self._name = name def _test(): pass if __name__ == '__m 阅读全文
posted @ 2022-01-21 17:47 小葱饼子 阅读(54) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- class Task(): _cls_name = "cls name" def __init__(self, name='', cost=0, pre_task=None, task_list=[] ): self 阅读全文
posted @ 2022-01-21 17:40 小葱饼子 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import env_config from class_task import Task from lib.lib_x_0002_decorator_log_funcname import decorator_lo 阅读全文
posted @ 2022-01-21 17:28 小葱饼子 阅读(22) 评论(0) 推荐(0) 编辑
摘要:import sys import os root_path = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) + '\\' data_path = root_path + 'data\\' 阅读全文
posted @ 2022-01-21 16:42 小葱饼子 阅读(84) 评论(0) 推荐(0) 编辑
摘要:#!/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 阅读全文
posted @ 2022-01-21 13:48 小葱饼子 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python# -*- coding: UTF-8 -*- import pathlibimport pandas as pd print("please input the 1stfile to compare")csv_from = input() print("pleas 阅读全文
posted @ 2022-01-14 15:57 小葱饼子 阅读(26) 评论(0) 推荐(0) 编辑
摘要: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 +  阅读全文
posted @ 2022-01-12 17:31 小葱饼子 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- from lib_config import * from lib.lib_x_0002_decorator_log_funcname import decorator_log_funcname import pan 阅读全文
posted @ 2022-01-11 17:49 小葱饼子 阅读(32) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import time from lib_001_decorator_log_funcname import decorator_log_funcname d1 = 10 + 2 s1 = "456" @decora 阅读全文
posted @ 2022-01-10 15:07 小葱饼子 阅读(19) 评论(0) 推荐(0) 编辑
摘要: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",  阅读全文
posted @ 2022-01-10 15:05 小葱饼子 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- from lib_001_decorator_log_funcname import decorator_log_funcname s1 = 'hello s1' s2 = "hello s2" s3 = ''' g 阅读全文
posted @ 2022-01-10 15:04 小葱饼子 阅读(27) 评论(0) 推荐(0) 编辑
摘要:前提:文件最后一行有换行符 第一步:以二进制方式取得文件最后两个byte。last2=`tail -c 2 <your_file> | od -x -A n` 第二步:判断最后两个byte是否是'CRLF'if [ $last2 = 0a0d -o $last2 = 0d0a ]then # Che 阅读全文
posted @ 2022-01-04 17:11 小葱饼子 阅读(2133) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示