Python 中的变量赋值不需要类型声明。 每个变量在内存中创建,都包括变量的标识,名称和数据这些信息。 每个变量在使用前都必须赋值,变量赋值以后该变量才会被创建。 等号(=)用来给变量赋值。 等号(=)运算符左边是一个变量名,等号(=)运算符右边是存储在变量中的值。例如: counter = 10 ...
分类:
编程语言 时间:
2019-07-05 09:16:17
阅读次数:
96
描述 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives th ...
分类:
其他好文 时间:
2019-07-04 16:02:31
阅读次数:
120
Source: PAT A1124 Raffle for Weibo Followers (20 分) Description: John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for ...
分类:
其他好文 时间:
2019-07-04 15:54:30
阅读次数:
90
In a row of trees, the th tree?produces?fruit with type . You?start at any tree?of your choice, then repeatedly perform the following steps: 1. Add on ...
分类:
其他好文 时间:
2019-07-04 00:23:10
阅读次数:
144
题目描述 This past fall, Farmer John took the cows to visit a corn maze. But this wasn't just any corn maze: it featured several gravity-powered teleporte ...
分类:
其他好文 时间:
2019-07-03 13:30:44
阅读次数:
114
[toc] 一、什么是dockerfile dockerfile是使用者用来自定义构建一个docker镜像的文本。 docker build f /path/to/a/Dockerfile 使用docker build命令用于从Dockerfile构建镜像 二、Dockerfile的基本结构 Doc ...
分类:
其他好文 时间:
2019-07-03 13:21:35
阅读次数:
89
table<tableclass="tabletable-stripedtable-borderedtable-hover"id="table1"><thead><tr><th>字段名</th><th>字段类型</th><th>字段是否为空</th><th>默认值</th&
分类:
Web程序 时间:
2019-07-02 14:44:18
阅读次数:
313
## 复习 ```python"""1、html: 标记语言:解释性,没有逻辑(有无效果) 常用标签(指令<!...>、转义字符&...;、标签<英文数字->) h1~h6 p a img div span i b ul>li table>tr>th|td form>input|select(opt ...
分类:
编程语言 时间:
2019-07-01 20:02:20
阅读次数:
112
最近要经常写一些Js代码,总看到同事能使用js高级函数写出比较简洁的js代码,挺羡慕的,于是就花了一些专门时间来学习。 forEach、map、reduce 我就不喜欢一上来就给出语法来,先来一个例子: 问题:给定数组 arr = [1,2,3,4] ,求数组的和 forEach 实现 var ar ...
分类:
Web程序 时间:
2019-07-01 13:43:15
阅读次数:
131
给大型科技公司的信号20 考研题源外刊精讲赏析-23 期-原文 Ⅰ Calls to break up Facebook this week were interrupted by a more immediate threat to a companyjust down the road1. Th ...
分类:
其他好文 时间:
2019-06-30 12:47:30
阅读次数:
187