会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
profesor
首页
新随笔
订阅
管理
上一页
1
···
83
84
85
86
87
2020年4月23日
Dennis Ritchie
摘要: 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
阅读(315)
评论(0)
推荐(0)
2020年4月22日
math.h应用, gcc test.c -o test -lm
摘要: 看个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
阅读(412)
评论(0)
推荐(0)
比较两个程序: error: ‘i’ undeclared (first use in this function)
摘要: 程序一: #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
阅读(4343)
评论(0)
推荐(0)
[浮点型数据]数值精度&取值范围 完全不同的概念
摘要: 先来看个小程序: #include <stdio.h> int main() { double a = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117
阅读全文
posted @ 2020-04-22 10:09 profesor
阅读(911)
评论(0)
推荐(0)
2020年4月18日
使用python解压rar文件
摘要: 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
阅读(3619)
评论(0)
推荐(0)
Unbuntu上安装卸载查看python packages
摘要: Ubuntu上使用的是python3, 安装使用: pip3 install <package name> 卸载使用: pip3 uninstall <package name> 查看已经安装的某个package: pip3 show <package name>
阅读全文
posted @ 2020-04-18 18:04 profesor
阅读(459)
评论(0)
推荐(0)
2020年4月17日
在Ubuntu中,如何把Pycharm添加到favorites中
摘要: 启动首页,右下角有Configure和Get Help,在Configure中找到Create Desktop Entry,点击设置。 接下来就可以在系统搜索栏中搜索Pycharm,来启动软件 启动后,在Docker栏目中,鼠标放到软件上,右键,add to favorites
阅读全文
posted @ 2020-04-17 22:49 profesor
阅读(1272)
评论(0)
推荐(1)
2020年3月23日
ubuntu中,终端命令行快速打开html文件方法
摘要: ubuntu中,终端命令行快速打开html文件方法在terminal中,用命令快速调用浏览器打开html文件,而非通过鼠标点击的方式。 firefox浏览器 firefox prospero.html chrome浏览器 chromium-browser prospero.html 或者直接用: s
阅读全文
posted @ 2020-03-23 21:08 profesor
阅读(7867)
评论(0)
推荐(0)
2020年3月19日
Python清空文本内容的两种方法
摘要: 方法一: file = open("test.txt", 'w').close() 直接清空“test.txt”里面的内容 方法二: with open("test.txt", 'r+') as file: file.truncate(0)
阅读全文
posted @ 2020-03-19 20:30 profesor
阅读(32879)
评论(0)
推荐(1)
2020年3月6日
科大教学日历
摘要: 查询地址http://www.teach.ustc.edu.cn/category/calendar 科大教务处http://www.teach.ustc.edu.cn/
阅读全文
posted @ 2020-03-06 09:42 profesor
阅读(231)
评论(0)
推荐(0)
上一页
1
···
83
84
85
86
87
公告