code macname@localhost Desktop % cat test.sh while read line;do echo $line; done < a.txt macname@localhost Desktop % macname@localhost Desktop % cat a ...
分类:
系统相关 时间:
2020-11-30 16:14:46
阅读次数:
16
1.上升下降字符串 1 class Solution: 2 def sortString(self, s): 3 num = [0] * 26 4 for ch in s: 5 num[ord(ch) - ord('a')] += 1 6 7 ret = list() 8 while len(ret ...
分类:
其他好文 时间:
2020-11-30 15:46:10
阅读次数:
5
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() { 4 int t; 5 cin >> t; 6 while (t--) { 7 int a, b; 8 string a_line, b_line; 9 cin >> a ...
分类:
其他好文 时间:
2020-11-30 15:20:06
阅读次数:
5
一.其主要框架如下图所示: 一.其主要框架如下图所示: 二.sensor的JNI层:android_hardware_SensorManager.cpp (frameworks\base\core\jni) 注册JNI: register_android_hardware_SensorManager ...
分类:
其他好文 时间:
2020-11-27 11:50:48
阅读次数:
25
while循环中使用输出语句停止死循环的原因 z1340954953 2018-11-05 16:23:16 3021 收藏 1 分类专栏: 多线程 文章标签: 输出语句中断死循环 直接看代码 public class WhileTest { private boolean flag = true; ...
分类:
其他好文 时间:
2020-11-27 11:13:18
阅读次数:
7
1. P2065 [TJOI2011]卡片 桌子上现在有m张蓝色卡片和n张红色卡片,每张卡片上有一个大于1的整数。现在你要从桌子上拿走一些卡片,分若干次拿。每次只能拿走一组卡片:这组卡片颜色不同,并且两张卡片上面的数字的最大公约数大于1。问:最多可以从桌上拿走多少张卡片。 直接建图应该是可以的,但是 ...
分类:
其他好文 时间:
2020-11-26 14:51:15
阅读次数:
4
实验环境:(开始实验之前,请保证防火墙关闭,selinux关闭,时间同步)ansible:192.168.2.7web1:192.168.2.7web2:192.168.2.17OS:centos7OS:centos7OS:centos7实现功能:(自动化部署两台各自主机命名的httpd服务器)1、使用ansible的playbook实现自动化安装httpd2、建立httpd服务器,要求提供各自基
分类:
Web程序 时间:
2020-11-26 14:48:24
阅读次数:
9
Alpha(2/6)(更新) 1、每个成员的工作 前端 郭隆鑫、金子懿: 工作:前端WEB页面的设计、美化与完成,实现与后台处理的各种对接 下次计划完成的工作:实现摄像头的加入,java与python的调用 现在的进度:全部内容基本构建完毕,个别地方操作逻辑需要改善 后端 程陆瑶、杨雯 负责的任务: ...
分类:
其他好文 时间:
2020-11-26 14:35:31
阅读次数:
5
操作系统-操作系统-内核中的屏幕打印(下)接着之前的实现顺序来,对PrintString进行实现intPrintString(constchar*s)//需f要对参数进行判断,如果参数为空,返回-1{intret=0;if(s!=NULL){while(*s){ret+=PrintChar(*s++);//不为空时进行循环,直到遇见结束符结束}}else{ret=-1;}returnret;}//
分类:
其他好文 时间:
2020-11-26 14:25:31
阅读次数:
5
7-1 阅览室,感觉思路还好,但是写的太繁琐了,借鉴一下过的代码,又写了一遍;,代码: #include<bits/stdc++.h> using namespace std; int s[1010],w[1010]; int main() { int n; cin>>n; while(n--) { ...
分类:
其他好文 时间:
2020-11-26 14:11:33
阅读次数:
3