上下文管理器: def __exit__(self, exc_type, exc_val, exc_tb):若exc_tb不是空,则说明有异常返回值只能是true或false,若是false,则会把之前发生的异常抛出来 安装虚拟环境的工具:pipenv安装pipenv: pip install pi ...
分类:
编程语言 时间:
2019-11-02 14:12:43
阅读次数:
107
vim的常用指令如下: 光标运动: h,j , k, l (上/下/左/右) 删除字符: x 删除行 : dd 模式退出 : Esc,Insert(或者i) 退出编辑器 : q 强制退出不保存: q! 运行shell命令 :sh(使用exit返回vi编辑器) 保存文件 :w 文本查找 : / ...
分类:
系统相关 时间:
2019-11-02 14:12:30
阅读次数:
118
粒子系统粒子组件:在Unity中制作粒子特效是通过ParticleSystem组件来实现的,可以在Hierarchy中右键直接创建,也可以通过创建一个空物体,为空物体添加ParticleSystem组件来实现。 粒子系统属性 (1)Duration:整个粒子系统的持续时间(2)Looping:是否开 ...
分类:
其他好文 时间:
2019-11-02 13:32:35
阅读次数:
104
#include <stdio.h> int main () { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello,world!"; int y=3,z=4; printf("%d %d\n",y,... ...
分类:
其他好文 时间:
2019-11-02 11:27:30
阅读次数:
76
@echo off(cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1title Office 2019 Activator r/Piracyec ...
分类:
其他好文 时间:
2019-11-01 18:40:38
阅读次数:
271
后台启动head命令:grunt server & 注意:加上&虽然执行了后台启动,但还是有日志打印出来,使用ctrl+c可以退出。这时如果直接关闭shell, head进程就会终止 解决:执行命令后,不使用ctrl+c退出,使用exit退出shell即可 扩展:使用exit退出后,无法通过jps/ ...
分类:
系统相关 时间:
2019-10-31 21:48:20
阅读次数:
373
#include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf("%d %d\n", ... ...
分类:
其他好文 时间:
2019-10-31 18:13:07
阅读次数:
70
很暴力的搜索,还没有什么剪枝...... 心得: 【1】如果只查询和修改,用bool比bitset快 【2】rnt在循环中会比int快 【3】减少简单的函数调用 ...
分类:
其他好文 时间:
2019-10-31 16:32:20
阅读次数:
87
简单的来说DLL就是对数据库的C(Create)R(Retrieve)U(Update)D(Delete) 1.数据库的创建 (1)创建:create database 数据库名;当数据库已经存在则会报错: (2)由此就可以想到先判断你是否存在然后再创建,如果存在不会报错,如果不存在则会创建新的数据 ...
分类:
数据库 时间:
2019-10-31 01:08:48
阅读次数:
489
Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: ...
分类:
编程语言 时间:
2019-10-30 23:07:59
阅读次数:
160