Python 中的变量赋值不需要类型声明。 每个变量在内存中创建,都包括变量的标识,名称和数据这些信息。 每个变量在使用前都必须赋值,变量赋值以后该变量才会被创建。 等号(=)用来给变量赋值。 等号(=)运算符左边是一个变量名,等号(=)运算符右边是存储在变量中的值。例如: counter = 10 ...
分类:
编程语言 时间:
2019-07-05 09:16:17
阅读次数:
96
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
题目描述 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
最近要经常写一些Js代码,总看到同事能使用js高级函数写出比较简洁的js代码,挺羡慕的,于是就花了一些专门时间来学习。 forEach、map、reduce 我就不喜欢一上来就给出语法来,先来一个例子: 问题:给定数组 arr = [1,2,3,4] ,求数组的和 forEach 实现 var ar ...
分类:
Web程序 时间:
2019-07-01 13:43:15
阅读次数:
131
转自:https://www.linuxidc.com/Linux/2010-05/26202.htm 创建myt表并插入数据,如下: create table myt(name varchar2,create_time date) insert into myt values('john',to_ ...
分类:
数据库 时间:
2019-06-29 14:33:44
阅读次数:
130
"奶牛编号" Description 作为一个神秘的电脑高手,Farmer John 用二进制数字标识他的奶牛。然而,他有点迷信,标识奶牛用的二进制数 字,必须只含有K位"1"(1 define int long long using namespace std; int read(){ int f ...
分类:
其他好文 时间:
2019-06-28 22:48:13
阅读次数:
142
Time Limit: 1000MS Memory Limit: 65536K Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represent ...
分类:
其他好文 时间:
2019-06-28 22:26:23
阅读次数:
146
下面是 JSON 文本的示例 [{ "name": "John", "skills": ["SQL", "C#", "Azure"]}, { "name": "Jane", "surname": "Doe"}] 通过使用 SQL Server 内置函数和运算符,你可以对 JSON 文本执行以下操作: ...
分类:
数据库 时间:
2019-06-26 19:11:19
阅读次数:
145
[toc] 同步: 题目 Farmer John has recently purchased a new car online, but in his haste he accidentally clicked the "Submit" button twice when selecting ex ...
分类:
其他好文 时间:
2019-06-24 18:16:29
阅读次数:
112