摘要: terminal中,vim isPrime.c,在vim中输入下面的代码。 /* 判断一个正整数是否为素数(prime number) */ #include <stdio.h> #include <math.h> int main() { int number; int i; printf("输入 阅读全文
posted @ 2020-04-26 20:02 profesor 阅读(194) 评论(0) 推荐(0)
摘要: 来源:https://groups.google.com/forum/#!msg/net.unix-wizards/8twfRPM79u0/1xlglzrWrU0J Free Unix! Starting this Thanksgiving I am going to write a complet 阅读全文
posted @ 2020-04-23 12:22 profesor 阅读(161) 评论(0) 推荐(0)
摘要: The last of the Manchus Et tu, Manchu? One hundred years on, only a few native speakers remain Asia Oct 8th 2011 edition SANJIAZI A CENTURY ago it was 阅读全文
posted @ 2020-04-23 11:08 profesor 阅读(380) 评论(0) 推荐(0)
摘要: The death of a tech genius SIR – There has been a lot of talk about the untimely death of Steve Jobs, the man who turned Apple around by designing pro 阅读全文
posted @ 2020-04-23 11:04 profesor 阅读(318) 评论(0) 推荐(0)
摘要: 看个test.c中的代码: // 计算1 + 2 + 2^2 + 2^3 + 2^4 +... + 2^10的值 #include <stdio.h> #include <math.h> #define UPPER 10 #define BASE 2 int main() { int i = 0; 阅读全文
posted @ 2020-04-22 10:55 profesor 阅读(414) 评论(0) 推荐(0)
摘要: 程序一: #include <stdio.h> int main() { int s = 0; for (int i = 1; i <= 10; i+=3) { s += i; } printf("s = %d\n", s); printf("i = %d\n", i); return 0; } 程 阅读全文
posted @ 2020-04-22 10:29 profesor 阅读(4344) 评论(0) 推荐(0)
摘要: 先来看个小程序: #include <stdio.h> int main() { double a = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117 阅读全文
posted @ 2020-04-22 10:09 profesor 阅读(914) 评论(0) 推荐(0)
摘要: Ubuntu中,首先安装unrar sudo apt install unrar 安装完后,使用 which unrar 会得到安装位置 /usr/bin/unrar 还需要安装rarfile pip3 install rarfile from rarfile import RarFile RarF 阅读全文
posted @ 2020-04-18 18:19 profesor 阅读(3621) 评论(0) 推荐(0)
摘要: Ubuntu上使用的是python3, 安装使用: pip3 install <package name> 卸载使用: pip3 uninstall <package name> 查看已经安装的某个package: pip3 show <package name> 阅读全文
posted @ 2020-04-18 18:04 profesor 阅读(461) 评论(0) 推荐(0)
摘要: 启动首页,右下角有Configure和Get Help,在Configure中找到Create Desktop Entry,点击设置。 接下来就可以在系统搜索栏中搜索Pycharm,来启动软件 启动后,在Docker栏目中,鼠标放到软件上,右键,add to favorites 阅读全文
posted @ 2020-04-17 22:49 profesor 阅读(1275) 评论(0) 推荐(1)