一。Java中八种基本数据类型对应的包装类型 基本数据类型 包装类型 bytes java.lang.Bytes; short java.lang.Short; int java.lang.Integer; long java.lang.Long; float java.lang.Float; do ...
分类:
编程语言 时间:
2020-06-27 20:25:09
阅读次数:
65
Reverse String (E) 题目 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space ...
分类:
其他好文 时间:
2020-06-27 10:04:20
阅读次数:
50
#!/usr/bin/env python from struct import * import pandas as pd import numpy as np import os import re import pathlib import threading import time def ...
分类:
其他好文 时间:
2020-06-26 20:41:49
阅读次数:
57
Yes, you can remove the CD-ROM (or or original installation media) from the sources.list Edit the sources.list file with the following command: sudo n ...
分类:
其他好文 时间:
2020-06-26 20:01:57
阅读次数:
58
1. 引入模块 from module import do_module # 若引入的文件在同级文件夹的下面,要这么写,从执行文件的下一级开始写路径 from web.web1.web2.import cal # 包与包之间用点来联系 do_module.run() 引用do_module 中的函数 ...
分类:
编程语言 时间:
2020-06-26 16:43:13
阅读次数:
60
注: 本篇文章主要集中在Linux CFS调度器源码解析。文章代码分析基于Linux-4.18.0。 一、进程的创建 进程的创建是通过do_fork()函数完成。新进程的诞生,我们调度核心层会通知调度类,调用特别的接口函数初始化新生儿。我们一路尾随do_fork()函数。do_fork() >_do ...
分类:
其他好文 时间:
2020-06-26 16:37:46
阅读次数:
70
一、循环 1.for循环 1)格式 基本格式 for var in list do 循环体 done 其中 list是可迭代的对象,常见的包括: 数组 $(seq n m) 表示从n到m的正整数序列 {n..m} 表示从n到m的正整数 value1 value2 value3 ... 一系列值,可以 ...
分类:
系统相关 时间:
2020-06-26 14:23:48
阅读次数:
76
网上百度说是在mutation外修改state中的状态值,会报下列错误,可我明明在mutations中修改的状态值,还是报错接着百度,看到和我类似的问题,说mutations中只能用同步代码,异步用actions,我试着把修改值放在请求外面,结果不报错了参考:https://segmentfault... ...
分类:
其他好文 时间:
2020-06-26 12:50:44
阅读次数:
59
我们在使用时可以按照方便程度来用~ ① while循环 while循环通常用于不确定的循环次数时去使用它 ② do...while循环 功能上和while基本类似,不同之处它保证了循环至少执行一次 ③ for 循环 for循环主要用于循环次数固定的循环 ④ foreach循环 是一种十分高效的循环, ...
#!/usr/bin/env sh for ((x=1;x<10;x++));do for ((y=1;x>=y;y++));do printf "${y}x${x}=$(expr ${x} \* ${y}) " done echo -e "\n" done ...
分类:
系统相关 时间:
2020-06-25 23:25:07
阅读次数:
86