- 博客(9)
- 收藏
- 关注
原创 Vim
Vim 箭头 插入模式 i 添加模式 a (不能删除其他文本) a、i 和 A 都会带您进入插入模式,惟一的区别在于字符插入的位置。 删除 x (正常模式即可,不需要进入插入模式) 删除单词 dw (delete word) d$ 从当前光标删除到行末。 c for change Use the y operator to copy text and p to paste it ...
2021-05-04 13:17:06
155
原创 fortran
tips矩阵矩阵赋值 fortran程序代码扩展名为*.f 或*.for的文件,就是指以fixed format 来编写的程序;以*.f90 为扩展名的文件,就是以free format 来编写的程序。 空格无意义 输出引号——打两层引号。 write(*,*) "My name is ""Peter""." 书上 'fixed format’用全大写 输出两个,用逗号隔开 integer默认长整型,4byte。如果要使用短整型: integer(2) a integer*2 a fortran 三角函
2021-05-04 12:33:21
1006
原创 Linux 基本操作
快捷键 作用 Tab 补全(代码、命令、目录) Ctrl+c 强行终止当前程序 Ctrl+d 键盘输入结束或退出终端 Ctrl+s 暂停当前程序,暂停后按下任意键恢复运行 Ctrl+z 将当前程序放到后台运行,恢复到前台为命令fg Ctrl+a 将光标移至输入行头,相当于Home键 Ctrl+e 将光标移至输入行末,相当于End键 Ctrl+k 删除从光标所在位置到行末 Alt+Backspace 向前删除一个单词 Shift+PgUp 将终端显示向上滚动...
2021-03-06 18:51:41
172
原创 Chapter 8 Functions
FunctionsDefining a FunctionPassing Information to a Function Defining a Function def greet_user(): '''Display a simple greeting.''' #docstring,描述函数功能 print("Hello!") greet_user() #调用call 冒号 Passing Information to a Function ...
2021-02-24 14:07:07
448
原创 Chapter 7 User Input and while Loops
114 7.1 How the input() Function Works 7.1.1 A Simple Example message = input("Tell me something, and I will repeat it back to you: ") print(message) 把input的内容赋给了一个变量。 7.1.2 多行显示prompt: prompt = "If you tell us who you are, we can personalize the messages
2021-02-11 10:30:53
428
3
原创 Chapter 6 Dictionaries
set, dictionary (adding, modifying, looping, nesting)
2021-01-26 22:14:56
128
原创 Chapter 5 if Statement
if Statement、条件测试、 检查某元素是否在\不在list中、if-elif-if Chain、检查list是否为空
2021-01-26 09:23:42
354
1
原创 Chapter 2 Variables and Simple Data Types
1、String的基本操作:大小写、合并、(增删)空格 包括 f-strings; 2、数(浮点数等) 3、注释 4、Python之禅
2021-01-25 16:40:09
104
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人