任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:
其他好文 时间:
2021-04-30 12:31:08
阅读次数:
0
#include<stdio.h> void fun(int n); int main(){ int n; long long f; while(scanf("%d", &n)!=EOF){ fun(n); } return 0; } void fun(int n){ int f[505],a[50 ...
分类:
其他好文 时间:
2021-04-30 12:29:16
阅读次数:
0
1,计算0到100之间奇数和偶数的和 public static void main(String[] args) { //练习,计算0到100之间的奇数和偶数的和 int oddsum=0;//奇数 int evensum=0;//偶数 for(int i=0;i<=100;i++){ if(i% ...
分类:
其他好文 时间:
2021-04-30 12:27:04
阅读次数:
0
背景 创建了virtual environment,但是在sudo下却无效,提示找不到包,然而这个包其实安装过了。 解决办法 直接使用venv下python的绝对路径, sudo 你自己的虚拟环境目录/bin/python hello.py 例如 sudo /home/wlg/venv/bin/py ...
分类:
系统相关 时间:
2021-04-30 12:26:45
阅读次数:
0
背景 最近在跑程序的时候,遇到一个问题就是需要先下载数据包,但是这个数据包非常大,而且网速较慢,需要很长时间。而一旦中断与服务器的连接,所有的进程就都被kill掉了。所以需要在后台运行,且不能在断开shh连接后被kill掉。 操作步骤 1、执行自己的程序。例如 python hello.py 2、按 ...
分类:
系统相关 时间:
2021-04-30 12:24:47
阅读次数:
0
#include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = %d, ...
分类:
其他好文 时间:
2021-04-30 12:24:09
阅读次数:
0
1.语法 While条件: 循环的内容 注意: 如果循环的条件成立,运行“循环内容” 如果不成立,跳过循环 2.循环的套路 (1)考虑清楚循环的初始条件 (2)循环的结束条件 (3)重复需要干什么 (4)如何过渡到下一次循环 3.语法 Python for循环可以遍历任何序列的项目,如一个列表或者一 ...
分类:
编程语言 时间:
2021-04-30 12:19:38
阅读次数:
0
create table test.t_20210429 ( app String, cnt Nullable(UInt32), per Nullable(UInt32) ) ENGINE=MergeTree() order by app; insert into test.t_20210429 v ...
分类:
其他好文 时间:
2021-04-30 12:18:08
阅读次数:
0
indexOf():返回指定字符的索引。 charAt():返回指定索引处的字符。 replace():字符串替换。 trim():去除字符串两端空白。 split():分割字符串,返回一个分割后的字符串数组。 getBytes():返回字符串的 byte 类型数组。 length():返回字符串长 ...
分类:
其他好文 时间:
2021-04-30 12:17:29
阅读次数:
0
```javapublic class oopDemo6Student { String name; int age; public void study(){ System.out.println(this.name+"在学习"); }}//person >名字、生日、身高、体重//类(抽象) > ...
分类:
其他好文 时间:
2021-04-30 12:16:19
阅读次数:
0