1.sql语句 select distinct <select_list> from left_table <join_type> join right_table on <join_condition> where <where_condition> group by <group_by_list ...
分类:
数据库 时间:
2020-03-21 21:36:47
阅读次数:
71
一、测试运行 1、安装配置MinGW后,在VS中编译报错,如图: 2、后来参考其他同学,用linux进行编译,于是改变环境,连接了Ubuntu进行编译: 3、添加头文件#include<string.h>后,传至Ubuntu虚拟机,重新编译运行,结果如下: 二、寻找错误 1、可以在代码中发现,当输入 ...
分类:
其他好文 时间:
2020-03-19 15:08:35
阅读次数:
62
1.另外一种格式化方法: template = '{0:.2f} {1:s} are worth US${2:d}' {0:.2f}表示格式化第?个参数为带有两位?数的浮点数。 {1:s}表示格式化第?个参数为字符串。 {2:d}表示格式化第三个参数为?个整数。 template.format(4. ...
分类:
其他好文 时间:
2020-03-18 15:28:47
阅读次数:
69
A. Two Rabbits 题意: 求左右两只分别能跳a,b距离的兔子,是否能在同一点,如果能求最短时间。 cpp include using namespace std; string s[101]; int p[101]; string ans; int main(){ int t,n; ci ...
分类:
其他好文 时间:
2020-03-18 15:25:59
阅读次数:
61
发生原因:误操作chown -R 777 /usr/bin导致macOS终端出现错误 方法: 1、开启mac os root权限 2、进入root账号修改权限,将原来的权限恢复 具体步骤参考:https://easeapi.com/blog/blog/76-mac-could-not-determi ...
分类:
系统相关 时间:
2020-03-18 13:26:06
阅读次数:
73
原文连接:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html Systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置。 本文介绍它的基本用法,分为上下两篇。今天介绍它的主要命令,... ...
分类:
其他好文 时间:
2020-03-17 13:55:11
阅读次数:
96
1、最常用的最直接的就是 DELETE; DELETE FROM table_name WHERE condition; 首先,指定删除数据的表(table_name)。 其次,使用条件来指定要在WHERE子句中删除的行记录。如果行匹配条件,这些行记录将被删除。 请注意,WHERE子句是可选的。如果 ...
分类:
数据库 时间:
2020-03-16 21:48:26
阅读次数:
63
背景:在执行单元测试中,有些方法执行耗时,不想全部执行,想忽略执行,那就需要跳过某方法执行 1.无条件跳过某方法 @unittest.skip("skipping") 2.使用变量的方式,指定忽略测试方法 a=10 @unittest.skipIf(a > 5, "condition is not ...
分类:
其他好文 时间:
2020-03-15 22:09:20
阅读次数:
55
keyof Partial & Pick Condition Type never & Exclude & Omit typeof is Dictionary & Many enum ...
分类:
其他好文 时间:
2020-03-14 20:28:30
阅读次数:
82
1. 实例化: suite = unittest.TestSuite() (suite:为TestSuite实例化的名称) 2. 添加用例:suite.addTest(ClassName("MethodName")) (ClassName:为类名;MethodName:为方法名) 3. 添加扩展:s ...
分类:
其他好文 时间:
2020-03-14 00:39:01
阅读次数:
81