python3学习手册python3学习手册 简介: Python官网: h�ps://www.python.org Python由Guido van Rossum于1989年底发明,于1991年发行第一版, Python源代码遵循GPL协议 Python是一种解释型、面向对象、动态数据类型、可交互的语言 python2.0于2000-10-16发布,于2020年1月1日停止更新2.x版本, Python-2.7成为最后一个py >>> #这里可执行python代码,类似shell脚本 >>> print("hello") >>> exit() #退出交互模式 ②执行一次性代码 # python3 -c "要执行的代码,多个语句之间用;分号隔开" ③执行脚本 # vi test.py h�ps://www.jetbrains.com/pycharm/download/ ★PyCharm快捷键 Alt + Shi� 列选择模式,可同时选择多列 Ctrl + Alt + L 重新格式化代码,Reformat Code Ctrl + B 跳转到鼠标指定的函数定义处 Shi� + F10 运行程序 Ctrl + R 查找替换 ★设置字体颜色 File → Se�ngs →0 码力 | 213 页 | 3.53 MB | 1 年前3
git 操作手册file changed, 1 inser�on(+) create mode 100644 main.py # git log #查看提交记录;显示完整的hash值 commit 7b8ff6902bf14780a413a021cc1d946fd82fa82e (HEAD -> master) # commit后面为hash值,HEAD表示 #提交的说明信息 # git log --oneline #同上,提交记录以一行显示一次提交;只显示hash 值前6个字符 7b8ff69 (HEAD -> master) msgxxx # git log 文件名 #查看目标文件的提交记录 # git 管理员关联本地仓库与远程仓库 ④ 管理员在本地仓库中编辑代码,提交代码 ⑤ 管理员推送本地仓库代码到远程仓库 ⑥ 管理员邀请协作成员 ⑦ 成员克隆远程仓库 ⑧ 成员做出修改 ⑨ 成员推送自己的修改 ⑩ 管理员拉取成员的修改 ★管理员操作①到⑤ # git init #初始化一个git仓库 #进行代码的编辑,过程省略 # git add0 码力 | 35 页 | 1.69 MB | 1 年前3
postgresql操作手册pg_size_pre�y (pg_database_size('postgres')); #查看指定数据 库大小,单位经过优化显示 pg_size_pretty ---------------- 7901 kB #列出所有database的大小,单位经过优化显示 postgres=# select pg_database.datname, pg_size_pre�y (pg_data0 码力 | 17 页 | 445.84 KB | 1 年前3
k8s操作手册 2.3kubectl get nodes -L cputype #查看所有结点,显示cputype属 性列 # kubectl get nodes -l cputype -L cputype #只显示带有标签名为cputype的结点 # kubectl label nodes k8s-node01 cputype- disktype=ssd #给指定的node结点打标签 # kubectl get nodes -L disktype #查看所有结点,-L显示disktype属性 列 上图可见刚刚的pod已在创建了,调度到k8s-node01上了 ★节点软亲和性调度 节点软亲和性表示想让创建的pod优先调度到匹配的node上,如果没有匹配的 node,也可调度到其他的node上运行0 码力 | 126 页 | 4.33 MB | 1 年前3
共 4 条
- 1













