字符串: 字符串用单引号(’)或双引号(")括起来,不可变1,find通过元素找索引,可切片,找不到返回-12,index,找不到报错。3,split 由字符串分割成列表,默认按空格。4,captalize 首字母大写,其他字母小写。5,upper 全大写。6,lower 全小写。7,title,每 ...
分类:
编程语言 时间:
2020-07-12 16:28:35
阅读次数:
59
1、查找/etc目录下大于1M且类型为普通文件的所有文件[root@jubian520~]#find/etc-typef-size+1M/etc/udev/hwdb.bin/etc/selinux/targeted/contexts/files/file_contexts.bin/etc/selinux/targeted/policy/policy.30/etc/selinux/targeted/
分类:
其他好文 时间:
2020-07-12 14:25:30
阅读次数:
60
[root@kunpeng82 mininet]# ls /lib/systemd/system/zebra.service /lib/systemd/system/zebra.service [root@kunpeng82 mininet]# vi /lib/systemd/system/zebr ...
分类:
其他好文 时间:
2020-07-12 14:15:10
阅读次数:
68
Page<AoaQuestionHeader> findAll(Specification<AoaQuestionHeader> spec, Pageable pageable); List<AoaQuestionHeader> headerPage = questionHeaderDao.find ...
分类:
其他好文 时间:
2020-07-12 12:33:57
阅读次数:
85
find /etc/ -name "*.conf" | xargs tar -cpvf `date +%F`.tar && cp -a `date +%F`.tar /usr/local/src/ ...
分类:
其他好文 时间:
2020-07-11 22:51:16
阅读次数:
94
一、今日学习内容 1、学习第三章:查找 (1)顺序查找 1 public class OrderFind { 2 public static void main(String[] args) { 3 int[] ary= {2,3,4,5,9,7,8}; 4 int find=5; 5 int co ...
分类:
其他好文 时间:
2020-07-11 22:46:41
阅读次数:
76
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<cstring> #define DEBUG if( 1 )//是否输出调试用信息 using namespace std; int W, ...
分类:
其他好文 时间:
2020-07-11 19:21:29
阅读次数:
61
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the num ...
分类:
其他好文 时间:
2020-07-11 09:17:31
阅读次数:
48
连接数据库的jar出现异常(通常报错:Cannot find class:com.mysql.jdbc.Drive), 问题:Connector的jar已经导入,还是出现 Cause: java.sql.SQLException: Error setting driver on UnpooledDa ...
分类:
数据库 时间:
2020-07-11 00:13:37
阅读次数:
108
Installing via curl error - starship: Cannot open: Permission denied · Issue #838 · starship/starship https://github.com/starship/starship/issues/838 ...
分类:
其他好文 时间:
2020-07-11 00:03:50
阅读次数:
66