#2.1 print("Hello world!"); #2.2 message="Hello,Python!"; print(message); #2.3 name="tian jiale"; print(name+",would you like to learn some Python tod... ...
分类:
编程语言 时间:
2019-08-29 16:05:09
阅读次数:
61
1.注释// This is an in-line comment./* This is a multi-line comment */ 2.数据类型undefined(未定义), null(空), boolean(布尔型), string(字符串), symbol(符号), number(数字), ...
分类:
Web程序 时间:
2019-08-26 23:01:03
阅读次数:
106
"hdu" 刚看题的时候想维护一个分段函数想了好久,最后发现实在是伤身体,看完sol的第一句话我就发现我是sb 考虑分治,每次找到分值区间的某一个最大值的位置,枚举合法区间的左端点,同时确定区间的右端点的范围,处理完成后分治下去求解子区间 防止复杂度退化成$O(n^2)$我们可以借鉴启发式合并的思想 ...
分类:
移动开发 时间:
2019-08-25 01:13:42
阅读次数:
120
题目链接 "Make Rounddog Happy" Problem Description Rounddog always has an array a1,a2,?,an in his right pocket, satisfying 1≤ai≤n. A subarray is a non emp ...
分类:
移动开发 时间:
2019-08-22 01:09:31
阅读次数:
107
题目链接:https://leetcode cn.com/problems/happy number/ 题目描述: 编写一个算法来判断一个数是不是“快乐数”。 一个“快乐数”定义为:对于一个正整数,每一次将该数替换为它每个位置上的数字的平方和,然后重复这个过程直到这个数变为 1,也可能是无限循环但始 ...
分类:
其他好文 时间:
2019-08-17 22:02:24
阅读次数:
97
1124 Raffle for Weibo Followers (20 分) 1124 Raffle for Weibo Followers (20 分) 1124 Raffle for Weibo Followers (20 分) John got a full mark on PAT. He w ...
分类:
其他好文 时间:
2019-08-08 13:14:56
阅读次数:
82
定义类 student = Student() 学会有些类 ...
分类:
移动开发 时间:
2019-08-07 09:20:12
阅读次数:
95
class Solution { public boolean isHappy(int n) { Set<Integer> set=new HashSet<Integer>(); int temp=n; set.add(temp); while(true) { temp=sum(temp); if( ...
分类:
其他好文 时间:
2019-08-07 09:18:23
阅读次数:
67
Python常用的库简单介绍一下fuzzywuzzy ,字符串模糊匹配。 esmre ,正则表达式的加速器。 colorama 主要用来给文本添加各种颜色,并且非常简单易用。 Prettytable 主要用于在终端或浏览器端构建格式化的输出。 difflib ,[Python]标准库,计算文本差异 ...
分类:
编程语言 时间:
2019-08-05 17:27:13
阅读次数:
399
1. 我们在哪见过吗? Have we met? You must be Purr. 2. 非常高兴最后见到你了 I am very happy to finally meet you. / I'm delighted to meet you. I am glad to hear that. 3.你 ...
分类:
其他好文 时间:
2019-07-31 23:58:00
阅读次数:
210