def add(a,b): print(f"ADDING {a}+{b}") return a+b def subtract(a,b): print(f"SUBTRACTING {a}-{b}") return a-b def multiply(a,b): print(f"MULTIPLY {a}* ...
分类:
其他好文 时间:
2020-04-01 16:33:33
阅读次数:
85
Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty ...
分类:
其他好文 时间:
2020-03-29 15:26:11
阅读次数:
73
今天使用python命令行出现 WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available. You should consider upgrading via the 'python -m pip ...
分类:
其他好文 时间:
2020-03-28 13:20:33
阅读次数:
362
连接的错误无非几点:身份验证失败、没有权限访问、用户不存在(目前遇到) 关于身份验证失败: Client does not support authentication protocol requested by server; consider upgrading MySQL client; 上方 ...
分类:
数据库 时间:
2020-03-24 15:51:13
阅读次数:
90
安装MySQL ubuntu使用 "apt安装" :apt是Debian及其衍生发行版的软件包管理器。其他Linux安装方法见 "官网" 。 以下为当前环境未安装过MySQL,已安装过查看下面的第xx步和xx步。 1 Adding the MySQL APT Repository 2 通过APT安装 ...
分类:
数据库 时间:
2020-03-22 16:18:08
阅读次数:
100
Tokens on the Segments Time Limit: 1000 msMemory Limit: 65536 KB Consider segments on a two-dimensional plane, where the endpoints of the -th segment ...
分类:
其他好文 时间:
2020-03-18 18:57:20
阅读次数:
98
题目链接:https://codeforces.com/contest/1312 题目大意: 能否对一个数组执行任意次操作,使得其变为目标数组。 对于第i次操作,我们可以放弃,或给数组中任意一个元素加上k^i 想法: 我们不难发现一个数 = k^x + k^y + k^z + ... (x != y ...
分类:
其他好文 时间:
2020-03-18 13:46:27
阅读次数:
64
错误原因 在pom中引入了mybatis-spring-boot-starter ,Spring boot默认会加载org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration类,DataSourceAutoConfi ...
分类:
数据库 时间:
2020-03-17 16:45:57
阅读次数:
384
【GTS Fail】GtsSecurityHostTestCases testNoExemptionsForSocketsBetweenCoreAndVendorBan 【问题描述】 Gts 7.0 r4工具报出失败项 GtsSecurityHostTestCases com.google.andr ...
分类:
其他好文 时间:
2020-03-14 23:38:03
阅读次数:
54
Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have ...
分类:
其他好文 时间:
2020-03-14 13:06:36
阅读次数:
50