学习字符串format()函数,执行如下语句时报错:ValueError: cannot switch from manual field specification to automatic field numbering,意思为:值错误:无法从手动字段规范切换到自动字段编号 原来是因为自动编号和 ...
分类:
其他好文 时间:
2020-07-04 20:32:26
阅读次数:
86
题目信息 时间: 2019-07-03 题目链接:Leetcode tag:动态规划 小根堆 难易程度:中等 题目描述: 我们把只包含质因子 2、3 和 5 的数称作丑数(Ugly Number)。求按从小到大的顺序的第 n 个丑数。 示例: 输入: n = 10 输出: 12 解释: 1, 2, ...
分类:
其他好文 时间:
2020-07-04 17:19:58
阅读次数:
66
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
$# :传给脚本的参数个数;$0 :脚本名称;$n :n为数字,代表传给脚本的第n个参数;$@ :参数列表;$* :也是显示参数列表,与上一条命令不同的是,当在双引号里面时,”$*”表示一个参数,即”a b c”,而”$@”表示三个参数,即”a” “b” “c”;$$ :执行当前脚本的进程ID;$? ...
分类:
系统相关 时间:
2020-07-04 13:41:05
阅读次数:
110
CSS 中文开发手册 背景图片 | background-image (Backgrounds & Borders) - CSS 中文开发手册 background-image CSS属性的元件上设置一个或多个背景图像。 /* Single value */background-image: url... ...
分类:
Web程序 时间:
2020-07-04 01:36:09
阅读次数:
70
力扣链接:https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof/ 题目描述 给定一棵二叉搜索树,请找出其中第k大的节点。 思路:中序遍历变体 按右->root->左的顺序遍历,并计数K 代码: /** ...
分类:
其他好文 时间:
2020-07-03 23:28:17
阅读次数:
69
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2020-07-03 21:49:23
阅读次数:
77
准备工作:新建文件夹,放入cgic.c cgic.h login.c和Makefile(后面新建),登录名为111,密码为222 效果图为: login.html 放到www目录下 <html > <head> <meta http-equiv="Content-Type" content="tex ...
分类:
其他好文 时间:
2020-07-03 21:44:15
阅读次数:
99
在设计图会经常使用到的阴影效果,如何用css3来实现呢?这篇文章主要整理box-shadow的一些好看常用的投影效果。 1、曲面/椭圆投影效果: 代码如下: <style> .shadow_wrap{ width: 100%;background:#E6EEF6;max-width: 600px;m ...
分类:
Web程序 时间:
2020-07-03 21:37:09
阅读次数:
166
JS中数据类型分为两类: 基本数据类型 + 引用数据类型 1.基本数据类型 直接在栈内存中保存数据值,按值访问。 有5种:String字符串、Number数字、 Boolean布尔值、Undefined、Null 当copy数据时,copy到的是数据值本身。基本数据类型的变量与变量之间是独立存在,修 ...
分类:
其他好文 时间:
2020-07-03 21:28:27
阅读次数:
57