内置函数的作用: # abs() # 取绝对值,绝对路径 # all() # 判断可迭代对象(列表,集合等)的值是不是全部为ture # any() # 判断可迭代对象,任意一个为ture,则返回true。空列表也是false # ascii() # 把数据转换成字符串的形式 # # bin() # ...
分类:
编程语言 时间:
2019-12-08 15:43:51
阅读次数:
85
Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a r ...
分类:
其他好文 时间:
2019-12-08 12:46:54
阅读次数:
66
一:类型参数 泛型类 //泛型类,基本和java是一致的 class Pair[T,S](val first:T,val second:S) val pair1 = new Pair("42",42) val pair2 = new Pair[Any,Any](42,"42") 泛型函数 //返回数 ...
分类:
其他好文 时间:
2019-12-08 12:41:21
阅读次数:
130
一,普通写入数据库 二,批量写入数据库 三,普通写入数据库添加事务 输出结果: ...
分类:
数据库 时间:
2019-12-08 10:45:06
阅读次数:
135
mysql> CREATE DATABASE student_tb;Query OK, 1 row affected mysql> USE student_tb;Database changed mysql> CREATE TABLE department( -> did int(4) NOT NU ...
分类:
其他好文 时间:
2019-12-08 01:32:56
阅读次数:
111
Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. ...
分类:
其他好文 时间:
2019-12-07 21:15:30
阅读次数:
99
链接: https://codeforces.com/contest/1265/problem/D 题意: An integer sequence is called beautiful if the difference between any two consecutive numbers is ...
分类:
其他好文 时间:
2019-12-07 01:19:52
阅读次数:
89
本文不再更新,可能存在内容过时的情况,实时更新请移步我的新博客: "JS如何获取地址栏url后面的参数?" ; 这里提供了两种获取地址栏url后面参数的方法: 方式1 传参: 获取参数: 方式2 传参: 获取参数: 参考文章: 1. URLSearchParams; 2. Is there any ...
分类:
Web程序 时间:
2019-12-06 21:40:34
阅读次数:
184
转, 原文:https://www.cnblogs.com/middleware/p/11996731.html 以Python为例的Async / Await的编程基础 来源:Redislabs 作者:Loris Cro 翻译:Kevin (公众号:中间件小哥) 近年来,许多编程语言都在努力改进它 ...
分类:
编程语言 时间:
2019-12-06 21:08:40
阅读次数:
126
最近些项目,需求是写一个箭头图案,想着就用clip-path来写,但是写到后来发现clip-path 无法加边框,最后用了个死办法写了出来,仅供参考 下图是设计图 如下是实现方案(就是写两层,外面一层灰色,里面一层白色覆盖) <template> <section class="moveCompan ...
分类:
其他好文 时间:
2019-12-06 19:38:09
阅读次数:
272