01 2019 档案
摘要:ssh-keygen -f "/home/demo/.ssh/known_hosts" -R 远程IPECDSA host key for 远程 IP has changed and you have requested strict checking. 解决: ssh-keygen -R 远程IP
阅读全文
摘要:新的Ubuntu16.04后安装软件都提示:Unable to locate package错误, 原因,应该是刚安装,软件源还没有更新,所以才会无法找到包。 解决方法,终端输入以下命令:sudo apt-get update; 再去执行软件安装
阅读全文
摘要:AttributeError: 'function' object has no attribute '_set_parent_with_dispatch' 原因:orm字段类型不匹配,比如应该是db.Text而不是text 迁移时报错提示 没有发现表结构的变化原因:在manage.py文件没有导入
阅读全文
摘要:"""读心术"""import randomlist1 = ["☼","☽","☆","☾","¤","§","♊","♉","♈","♎","♌","♏","♓","❉"]count = 0ran_num = random.randint
阅读全文
摘要:# -*-coding=utf-8-*-class Oton(): def __init__(self, num, n): self.num = num # 十进制数 self.n = n # 转换为n进制 def translate(self): str_temp = "" # 临时变量存储结果
阅读全文
摘要:flask+redis获取一定时间段内用户的get请求和post请求的数量
阅读全文
摘要:#服务器端 # #客户端 #
阅读全文
摘要:#服务器端# import socketimport os# 创建传输任务def read_send_task(file_path, service_client_scoket): # 二进制方式打开源文件 with open(file_path, 'rb') as file: while True
阅读全文
摘要:import os# 获取文件名file_path = input("请输入要复制的文件地址:【例如】d:/test.txt")path_idx = file_path.rfind("/") # 路径标识截取file_path_1 = file_path[:path_idx + 1] # 截取路径f
阅读全文
摘要:import threadingimport osimport shutil# 创建拷贝任务def copy_work(source_dir, dest_dir, file_name): # 拼接文件名路径 source_file_path = source_dir + '/' + file_nam
阅读全文

浙公网安备 33010602011771号