摘要: systemctl命令 systemctl list-units - 列出所有jobs/serviceList all units (where unit is the term for a job/service)systemctl start ... 阅读全文
posted @ 2017-06-12 16:45 2021年的顺遂平安君 阅读(70) 评论(0) 推荐(0)
摘要: 命令 systemctl list units 列出所有jobs/serviceList all units (where unit is the term for a job/service) systemctl start [NAME...] 启动 systemctl stop [NAME... 阅读全文
posted @ 2017-06-12 16:45 2021年的顺遂平安君 阅读(206) 评论(0) 推荐(0)
摘要: Finally, we'll want a way to test whether a file we've opened is closed. Sometimes we'll have a lot of file objects open, and if we're not careful, th 阅读全文
posted @ 2017-06-12 15:52 2021年的顺遂平安君 阅读(251) 评论(0) 推荐(0)
摘要: Finally, we'll want a way to test whether a file we've opened is closed. Sometimes we'll have a lot of file objects open, and if... 阅读全文
posted @ 2017-06-12 15:52 2021年的顺遂平安君 阅读(56) 评论(0) 推荐(0)
摘要: Programming is all about getting the computer to do the work. Is there a way to get Python to automatically close our files for ... 阅读全文
posted @ 2017-06-12 15:50 2021年的顺遂平安君 阅读(27) 评论(0) 推荐(0)
摘要: Programming is all about getting the computer to do the work. Is there a way to get Python to automatically close our files for us? Of course there is 阅读全文
posted @ 2017-06-12 15:50 2021年的顺遂平安君 阅读(138) 评论(0) 推荐(0)
摘要: We keep telling you that you always need to close your files after you're done writing to them. Here's why! During the I/O process, data is buffered: 阅读全文
posted @ 2017-06-12 15:47 2021年的顺遂平安君 阅读(152) 评论(0) 推荐(0)
摘要: We keep telling you that you always need to close your files after you're done writing to them. Here's why! During the I/O proc... 阅读全文
posted @ 2017-06-12 15:47 2021年的顺遂平安君 阅读(54) 评论(0) 推荐(0)
摘要: ====== rstrip Description Returns a copy of the string with trailing characters removed. Syntax str. rstrip([chars]) chars ... 阅读全文
posted @ 2017-06-12 15:45 2021年的顺遂平安君 阅读(91) 评论(0) 推荐(0)
摘要: ====== rstrip ====== Description Returns a copy of the string with trailing characters removed. Syntax str . rstrip([chars]) chars Optional. String sp 阅读全文
posted @ 2017-06-12 15:45 2021年的顺遂平安君 阅读(1077) 评论(0) 推荐(0)
摘要: 这几天研究了一下OpenFOAM里的 和并行计算,总结一下。 Case 1 先进行并行计算 1. 初始化流场 2. 把初始化好的流场分块 3. 4. 把并行计算的结果拼接 Case 2 导入 Case 1 的计算结果 1. 导入 Case 1 计算好的结果(默认好像是自动导入最后一个计算步) 2. 阅读全文
posted @ 2017-06-12 14:13 2021年的顺遂平安君 阅读(2657) 评论(0) 推荐(1)
摘要: 这几天研究了一下OpenFOAM里的MapFields和并行计算,总结一下。 Case 1 先进行并行计算 SetFields 初始化流场decomposePar 把初始化好的流场分块mpirun -np N Solver -parallelrecon... 阅读全文
posted @ 2017-06-12 14:13 2021年的顺遂平安君 阅读(115) 评论(0) 推荐(0)
摘要: 假设自己写的 class 文件myPets.py放在当前目录的子目录/myClasses下,在myPets.py中定义了一个 class 叫Pet。现在要调用Pet这个 class : from myClasses.myPets import Petgi... 阅读全文
posted @ 2017-06-12 12:21 2021年的顺遂平安君 阅读(111) 评论(0) 推荐(0)
摘要: 假设自己写的 _class_ 文件 放在当前目录的子目录 下,在 中定义了一个 _class_ 叫 。现在要调用 这个 _class_ : : class Pet(object): ''' object is a special variable in Python that you should 阅读全文
posted @ 2017-06-12 12:21 2021年的顺遂平安君 阅读(2637) 评论(0) 推荐(0)
摘要: Ubuntu的图形界面容易死机,如果正在跑程序的话又不能重启。这时候可以通过终端来_ 重启 _图形界面。 首先按 +`Ctrl F1`进入终端界面。查看图形界面的进程: 查看到名为Xorg的进程,记下前面的PID,然后: 这时候图形界面的进程就被杀掉了。系统会自动重启这个图形界面进程,这时候按 +` 阅读全文
posted @ 2017-06-12 12:20 2021年的顺遂平安君 阅读(4248) 评论(0) 推荐(0)
摘要: Ubuntu的图形界面容易死机,如果正在跑程序的话又不能重启。这时候可以通过终端来_重启_图形界面。 首先按Alt+Ctrl+F1进入终端界面。查看图形界面的进程: ps -t tty7 查看到名为Xorg的进程,记下前面的PID,然后: kill... 阅读全文
posted @ 2017-06-12 12:20 2021年的顺遂平安君 阅读(117) 评论(0) 推荐(0)
摘要: 直接下载deb包安装失败,具体原因不明。通过官网提供的添加repository的方式安装成功: curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > micros... 阅读全文
posted @ 2017-06-12 12:19 2021年的顺遂平安君 阅读(59) 评论(0) 推荐(0)
摘要: Ctrl+Alt+F1可以从图形界面切换到终端界面。Ctrl+Alt+F7可以从终端界面退出来,重新回到图形界面 阅读全文
posted @ 2017-06-12 12:19 2021年的顺遂平安君 阅读(91) 评论(0) 推荐(0)
摘要: +`Alt F1`可以从图形界面切换到终端界面。 +`Alt F7`可以从终端界面退出来,重新回到图形界面 阅读全文
posted @ 2017-06-12 12:19 2021年的顺遂平安君 阅读(1095) 评论(0) 推荐(0)
摘要: 直接下载deb包安装失败,具体原因不明。通过官网提供的添加repository的方式安装成功: 之后, 就可以安装成功了。 阅读全文
posted @ 2017-06-12 12:19 2021年的顺遂平安君 阅读(637) 评论(0) 推荐(0)