码迷,mamicode.com
首页 >  
搜索关键字:read case while    ( 57414个结果
Binder杂记
1. Binder的系统日志文件 # ps -A | grep suspend system 699 1 2184444 4564 binder_ioctl_write_read 0 S android.system.suspend@1.0-service # ls /proc/699/fd -l ...
分类:其他好文   时间:2021-04-19 15:59:18    阅读次数:0
C for,while,do while 代码实现
这里用go to 来模拟汇编他们的区别 while 代码 int i = 0; while (i < 100) { i++; } goto 实现while int i = 0; WHILE_BEGIN: if (i < 100) { goto WHILE_END; } i++; goto WHILE ...
分类:其他好文   时间:2021-04-19 15:45:52    阅读次数:0
python使用panda读取txt文件
Panda模块读取txt文本文件 使用pandas.read_csv函数 1. 如果txt文本中有表头(标题行) import panda as pd data = pd.read_csv('data.txt') print(data) 2. 如果txt文本中无表头 import panda as ...
分类:编程语言   时间:2021-04-19 15:38:55    阅读次数:0
POJ1631 - Bridging signals - LIS优化 - 二分+dp - nlogn
##题意 求最长上升子序列长度 ##思路 本题直接用dp写,会超时,需要优化 优化办法:二分+dp ##AC代码 //4test n //6 p //4 2 6 3 1 5 ->3 //10 //2 3 4 5 6 7 8 9 10 1 ->9 //8 //8 7 6 5 4 3 2 1 ->1 / ...
分类:其他好文   时间:2021-04-19 14:47:09    阅读次数:0
HDU1160 - FatMouse's Speed - 最长上升子序列的变形+记录路径
##思路 最长上升子序列的变形+记录路径 ##AC代码 #include<iostream> #include<cmath> #include<string.h> #include<algorithm> #include<stdio.h> #include<iomanip> #define inf ...
分类:其他好文   时间:2021-04-19 14:43:51    阅读次数:0
变量,元字符,流程判断if,while、for循环
一: shell编程介绍 1、一个shell脚本运行必须要拥有r和x权限; chamod u+x 1.txt 2、运行一个shell脚本的3个步骤: (1)启动bash解释器 (2)bash把文件内容从硬盘读入内存 (3)bash把读入到内存的内容进行语法解释,控制操作系统执行shell代码 写脚本 ...
分类:其他好文   时间:2021-04-16 12:25:54    阅读次数:0
ingress的基本使用
1.Ingress测试示例 1.定义一个deployment [root@k8s-master01 service-ingress]# cat nginx-test.yaml apiVersion: v1 kind: Service metadata: name: ingress-test labe ...
分类:其他好文   时间:2021-04-16 12:25:19    阅读次数:0
[LG P3676]小清新数据结构题
题目 点这里看题目。 分析 直接来做这个有趣的问题似乎显得太过棘手,不妨考虑一个较弱的问题: \[ \sum_{u=1}^n s_u \] 假如当前根确定为 \(r\) ,那么就有: \[ \sum_{u=1}^ns_u=\sum_{u=1}^n(\operatorname{dist}(u,r)+1 ...
分类:其他好文   时间:2021-04-16 12:12:11    阅读次数:0
模拟cpu/mem/io使用率
模拟cpu使用率 脚本: 可以将1个cpu-core打满 k.c #include <stdlib.h> int main() { while(1); return 0; } gcc -o out k.c ./out 查看top可以看到将1个cpu-core打满,可以根据需要,并发启动多个进程将多个 ...
分类:其他好文   时间:2021-04-16 12:03:28    阅读次数:0
Capture Data.dmg
苹果apple mac 系统检测 日常分析 软件 https://gigafiles.apple.com/#/download 现有文件可供下载。 备注 Capture Data 9.9.0 This application gathers information from your system ...
分类:其他好文   时间:2021-04-16 11:49:46    阅读次数:0
57414条   上一页 1 ... 39 40 41 42 43 ... 5742 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!