#encoding=utf-8 import pandas as pd import os import csv def concat_csv(filename,dirpath): with open(filename,'w') as f: cw=csv.writer(f) cw.writerow( ...
分类:
其他好文 时间:
2021-06-09 15:30:20
阅读次数:
0
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # @Time : 2021/4/16 10:42 上午 4 # @Name : peilun 5 # @File : Fly_book.py 6 # @Software: PyCharm 7 i ...
分类:
其他好文 时间:
2021-06-09 15:27:31
阅读次数:
0
编译突然无法通过: Error (10054): Verilog HDL File I/O error at ...: can't open Verilog Design File "G:/..." 提示的是一个头文件,解决办法: 在文件位置拷贝一个副本,然后将原文件删除,再将副本改为原文件名即可! ...
分类:
其他好文 时间:
2021-06-09 10:37:10
阅读次数:
0
原先用的字符设备驱动框架都是自己定义fops结构体,自己去实现里面的各个成员函数,然后测试程序里面打开一个设备文件open("/dev/xxx")就能通过内核调用到驱动程序里的open函数。但这个做法的前提是写应用程序的人知道有个名字叫xxx的文件才能去打开他,没有把应用和驱动很好地分开。 输入子系 ...
分类:
其他好文 时间:
2021-06-09 10:36:23
阅读次数:
0
报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 解决方法: 参考: https://bbs.huaweicloud.com/blogs/143682 很多方法都没用,这个 ...
分类:
Web程序 时间:
2021-06-08 23:20:59
阅读次数:
0
本窗口打开: 传参: this.$router.push({ name: 'info-detail', params: {id: id}}) 取参: this.$route.params.id 新窗口打开 传参: window.open(this.$router.resolve({ path: 'i ...
分类:
其他好文 时间:
2021-06-08 23:19:17
阅读次数:
0
搜索树判断 对于二叉搜索树,我们规定任一结点的左子树仅包含严格小于该结点的键值,而其右子树包含大于或等于该结点的键值。如果我们交换每个节点的左子树和右子树,得到的树叫做镜像二叉搜索树。 现在我们给出一个整数键值序列,请编写程序判断该序列是否为某棵二叉搜索树或某镜像二叉搜索树的前序遍历序列,如果是,则 ...
分类:
其他好文 时间:
2021-06-08 22:23:49
阅读次数:
0
一、打开文件 open(path,flag,encoding,[errors]) path:打开路径 flag:打开方式:【读r(read),写w(write),追加a(append)】 encoding:编码方式 errors:错误处理 二、详解flag r:只读。该文件必须已存在。 r+:可读可 ...
分类:
编程语言 时间:
2021-06-07 21:09:28
阅读次数:
0
@staticmethoddef unzip_file(failed_file): zip_file = zipfile.ZipFile(failed_file) print(zip_file) if os.path.isdir(failed_file[0:-20]): pass else: os. ...
分类:
编程语言 时间:
2021-06-07 20:42:48
阅读次数:
0
SSH无密登录配置 1)配置ssh (1)基本语法 ssh另一台电脑的ip地址 (2)ssh连接时出现Host key verification failed的解决方法 ssh hadoop103 出现: The authenticity of host 'hadoop103 (192.168.18 ...
分类:
其他好文 时间:
2021-06-05 18:38:40
阅读次数:
0