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 阅读全文
posted @ 2019-01-21 09:56 我的jsj 阅读(299) 评论(0) 推荐(0)
摘要:新的Ubuntu16.04后安装软件都提示:Unable to locate package错误, 原因,应该是刚安装,软件源还没有更新,所以才会无法找到包。 解决方法,终端输入以下命令:sudo apt-get update; 再去执行软件安装 阅读全文
posted @ 2019-01-21 09:53 我的jsj 阅读(8512) 评论(0) 推荐(0)
摘要:AttributeError: 'function' object has no attribute '_set_parent_with_dispatch' 原因:orm字段类型不匹配,比如应该是db.Text而不是text 迁移时报错提示 没有发现表结构的变化原因:在manage.py文件没有导入 阅读全文
posted @ 2019-01-21 09:49 我的jsj 阅读(243) 评论(0) 推荐(0)
摘要:"""读心术"""import randomlist1 = ["☼","☽","☆","☾","¤","§","♊","♉","♈","♎","♌","♏","♓","❉"]count = 0ran_num = random.randint 阅读全文
posted @ 2019-01-21 09:46 我的jsj 阅读(1616) 评论(0) 推荐(0)
摘要:# -*-coding=utf-8-*-class Oton(): def __init__(self, num, n): self.num = num # 十进制数 self.n = n # 转换为n进制 def translate(self): str_temp = "" # 临时变量存储结果 阅读全文
posted @ 2019-01-15 14:11 我的jsj 阅读(1460) 评论(0) 推荐(0)
摘要:flask+redis获取一定时间段内用户的get请求和post请求的数量 阅读全文
posted @ 2019-01-07 11:20 我的jsj 阅读(903) 评论(0) 推荐(0)
摘要:#服务器端 # #客户端 # 阅读全文
posted @ 2019-01-04 11:58 我的jsj 阅读(551) 评论(0) 推荐(0)
摘要:#服务器端# import socketimport os# 创建传输任务def read_send_task(file_path, service_client_scoket): # 二进制方式打开源文件 with open(file_path, 'rb') as file: while True 阅读全文
posted @ 2019-01-04 11:48 我的jsj 阅读(354) 评论(0) 推荐(0)
摘要:import os# 获取文件名file_path = input("请输入要复制的文件地址:【例如】d:/test.txt")path_idx = file_path.rfind("/") # 路径标识截取file_path_1 = file_path[:path_idx + 1] # 截取路径f 阅读全文
posted @ 2019-01-04 11:36 我的jsj 阅读(1130) 评论(0) 推荐(0)
摘要:import threadingimport osimport shutil# 创建拷贝任务def copy_work(source_dir, dest_dir, file_name): # 拼接文件名路径 source_file_path = source_dir + '/' + file_nam 阅读全文
posted @ 2019-01-04 11:21 我的jsj 阅读(2709) 评论(0) 推荐(0)