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
Linux apt命令 1. apt简介 apt(Advanced Packaging Tool)是一个在 Debian 和 Ubuntu 中的 Shell 前端软件包管理器。 apt 命令提供了查找、安装、升级、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。 apt 命令执行需要超级 ...
分类:
系统相关 时间:
2021-05-24 13:45:06
阅读次数:
0
Linux yum命令 1. yum简介 yum( Yellow dog Updater, Modified)是一个在 Fedora 和 RedHat 以及 SUSE 中的 Shell 前端软件包管理器。 基于 RPM 包管理,能够从指定的服务器自动下载 RPM 包并且安装,可以自动处理依赖性关系, ...
分类:
系统相关 时间:
2021-05-24 13:44:45
阅读次数:
0
# cat -A tmp.tmp 120.4987 12.717858^M$ ^M 对应的字符是 \r # cat tmp.txt | awk -vRS='\r\n' '{print $2,$1}' 或者转换格式文件 yum install dos2unix -y dos2unix tmp.tmp ...
安装 javaee jdk mysql apache ideaIU shell编程 x.sh脚本 格式要求: 1.脚本以#!/bin/bash开头 2.脚本要有可执行权限 vim hello.sh 写上: #!/bin/bash echo "hello,world" 保存退出 sh hello.sh ...
分类:
系统相关 时间:
2021-05-24 13:41:21
阅读次数:
0
前言 之前在利用docker 2375端口漏洞的时候,写公钥发现没有权限,检查后发现其被chattr锁定了 当使用chattr命令去解锁时,就出现了这个问题 chattr: Operation not permitted while setting flags on file 解决方案 chattr ...
分类:
其他好文 时间:
2021-05-24 13:37:55
阅读次数:
0
bool #布尔类型 True #真 False #假 l = [1,2,3,4] print( 1>2 ) #False print( 4 in l) #True print(1 not in l) #False print( len(l) > 3) #True 比如,想写个while的死循环,可 ...
分类:
其他好文 时间:
2021-05-24 13:31:59
阅读次数:
0
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, ...
分类:
其他好文 时间:
2021-05-24 13:17:05
阅读次数:
0
for 是支持迭代的一种通用结构。最有效,最灵活 for 的循环次数在执行权确定 package com.sf.struct; public class For01 { //for 是支持迭代的一种通用结构。最有效,最灵活 //for 的循环次数在执行权确定 public static void m ...
分类:
编程语言 时间:
2021-05-24 13:00:45
阅读次数:
0
第三次实验报告 姓名:张振东 实验地点:一教524 实验时间:2021-5.6 一、实验目的与要求 1、熟练掌握while、do__while及for语句实现循环的方法。 2、了解三种语句的区别和转换、各自的适应性、循环嵌套的使用。 3、掌握如何在循环语句中使用break、continue语句,改变 ...
分类:
其他好文 时间:
2021-05-24 12:51:39
阅读次数:
0