摘要:
import pypinyin # 不带声调的(style=pypinyin.NORMAL) def pinyin(word): s = '' for i in pypinyin.pinyin(word, style=pypinyin.NORMAL): s += ''.join(i)+ " " re 阅读全文
posted @ 2023-06-18 13:26
你说夕阳很美
阅读(42)
评论(0)
推荐(0)
摘要:
#!/usr/bin/env bash # 获取服务目录 xxx_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) # 端口检测间隔 w_interval=3 # 启动后端口检测次数 max_retried_times=50 REDIS_INSTALL_ 阅读全文
posted @ 2023-06-18 12:00
你说夕阳很美
阅读(77)
评论(0)
推荐(0)
摘要:
def digital_to_chinese(digital): str_digital = str(digital) chinese = {'1': '壹', '2': '贰', '3': '叁', '4': '肆', '5': '伍', '6': '陆', '7': '柒', '8': '捌', 阅读全文
posted @ 2023-06-18 11:57
你说夕阳很美
阅读(36)
评论(0)
推荐(0)
摘要:
import keyboard import time while True: if keyboard.is_pressed('w'): print('Forward') elif keyboard.is_pressed('s'): print('Backward') elif keyboard.i 阅读全文
posted @ 2023-06-18 11:56
你说夕阳很美
阅读(10)
评论(0)
推荐(0)
摘要:
对VAT.exe软件操作,按esc杀掉python.exe进程 # -*- coding:utf8 -*- import datetime import os import random import time from threading import Thread from pynput.key 阅读全文
posted @ 2023-06-18 11:55
你说夕阳很美
阅读(41)
评论(0)
推荐(0)
摘要:
脚本目的是小时候暑假看过一个韩剧,看了一半没看见结局,不记得剧名了,有点遗憾。在网上搜索那几年有哪些剧,然后百度,主角长啥样还是有点印象的,最终找到了!!! # -- coding:UTF-8 -- import re from selenium import webdriver from sele 阅读全文
posted @ 2023-06-18 11:36
你说夕阳很美
阅读(19)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- import os import pandas as pd def split_csv(src_file_name, num, flag, file_encoding): df = pd.read_csv(src_file_name, encoding 阅读全文
posted @ 2023-06-18 11:06
你说夕阳很美
阅读(33)
评论(0)
推荐(0)
摘要:
# -*- coding:utf8 -*- import pandas as pd file_name = '查询银行汇总_20w.xlsx' file_name_prefix = file_name.split('.')[0] df = pd.DataFrame(pd.read_excel(fil 阅读全文
posted @ 2023-06-18 10:55
你说夕阳很美
阅读(114)
评论(0)
推荐(0)
摘要:
# 第一步:调用pandas包 import pandas as pd # 第二步:读取数据 iris = pd.read_excel('./test1.xlsx', None) # 读入数据文件 keys = list(iris.keys()) # iris.keys()得到test.xls的sh 阅读全文
posted @ 2023-06-18 10:42
你说夕阳很美
阅读(40)
评论(0)
推荐(0)
摘要:
# with import random import pysnooper def print_upper_mid_lower(): lst = [] for i in range(10): lst.append(random.randrange(1, 1000)) with pysnooper.s 阅读全文
posted @ 2023-06-18 10:15
你说夕阳很美
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号