with open('data1_1.txt', 'r', encoding = 'utf-8') as f: data=f.readlines()n = 0for line in data: if line.strip('\n') == '': continue n+=1print(f'共{n}行 ...
分类:
其他好文 时间:
2021-05-24 14:12:19
阅读次数:
0
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:
数据库 时间:
2021-05-24 13:57:46
阅读次数:
0
问题: 安装pymysql时遇到报错 C:\Users\lenovo>pip install pymysql Unknown or unsupported command 'install' 解决办法: 直接用 pip.exe install pymysql 进行安装即可 ...
分类:
数据库 时间:
2021-05-24 13:56:47
阅读次数:
0
14章进程管理 1.每个执行的程序都称一个程序,每个进程都分配一个ID(pid,进程号) 2.程序有两种方式:前台和后台 3.系统的服务都是以后台进程的方式存在,而且常驻在系统。 查看进程 ps 命令查看执行情况 ps -a 查看当前的所有进程信息 ps -u 以用户的格式显示进程信息 ps -x ...
分类:
系统相关 时间:
2021-05-24 13:42:34
阅读次数:
0
1、VMware12 与 Centos7 能互相复制粘贴,且VMtools已经安装; 2、在设置选项里面设置共享文件夹时,没有效果,/mnt目录下没有hgfs文件夹; (1)yum install -y open-vm-tools-devel (2)没有hgfs文件夹创建一个就是了; (3)挂载:v ...
分类:
系统相关 时间:
2021-05-24 13:17:33
阅读次数:
0
The topic originated from the mid-term examination of the "Differential Geometry" course at Nanjing University, and any form of reprinting is strictly... ...
分类:
其他好文 时间:
2021-05-24 12:50:58
阅读次数:
0
题目 题目描述 用 \(a \times a\) 的石板覆盖 \(n \times m\) 的长方形广场,允许石板覆盖的区域超出广场,不允许打破石板,石板的两侧应平行于广场两侧,要求覆盖完广场所需的石板数量最少是多少。 输入格式 输入有三个数字 \(n,m,a\) (\(1≤n,m,a≤10^9\) ...
分类:
其他好文 时间:
2021-05-24 12:32:40
阅读次数:
0
D. Dyson Box 题意简述 一个二维的格子框,有些格子里面放了正方形盒子,现在给它一个向下 / 向左的重力,求系统平衡后的盒子外框周长。 解题报告 首先向下向左是一样的,这里只考虑向下。 注意到其实每一竖列放哪是一样的,最终都会落到最底部。 将上下的贡献和左右的贡献分开算,上下的贡献就是:这 ...
分类:
其他好文 时间:
2021-05-24 12:20:29
阅读次数:
0
在Linux的使用中,压缩和解压还是比较常用的操作,掌握好相关命令还是必要的,看一下常用的压缩命令:gz, bz2, xz, Z, zip。我们要知道不同压缩命令的压缩算法,所带来的压缩比例也是不同的。本文主要介绍压缩和归档命令的使用。 原文地址:Linux 文件压缩和归档命令(command)总结 ...
分类:
系统相关 时间:
2021-05-24 11:47:25
阅读次数:
0
选词填空-填单词20题Directions: Complete each sentence using the words given below. Each word can be used only once. Change the form where necessary.fraught re ...
分类:
其他好文 时间:
2021-05-24 11:07:57
阅读次数:
0