概述 自JDK1.5开始, 引入了自动装箱/拆箱这一语法糖, 它使程序员的代码变得更加简洁, 不再需要进行显式转换。基本类型与包装类型在某些操作符的作用下, 包装类型调用valueOf()方法将原始类型值转换成对应的包装类对象的过程, 称之为自动装箱; 反之调用xxxValue()方法将包装类对象转 ...
分类:
编程语言 时间:
2018-08-29 20:00:16
阅读次数:
213
官方文档: http://pyqt.sourceforge.net/Docs/PyQt4/classes.html 啄木鸟社区:https://wiki.woodpecker.org.cn/moin/The_PyQt4_tutorial PyQt教程:http://www.qaulau.com/bo ...
分类:
其他好文 时间:
2018-08-28 20:30:27
阅读次数:
179
http://zetcode.com/gui/pyqt5/ http://www.thehackeruniversity.com/2014/01/23/pyqt5-beginner-tutorial/ http://www.thehackeruniversity.com/2014/01/26/pyq ...
分类:
其他好文 时间:
2018-08-28 20:20:46
阅读次数:
189
I found this super helpful and hands-on tutorial on basics about Apache Spark, and also step-by-step user guide - I enjoyed it a lot. 倾情大奉送--Spark入门实战 ...
分类:
其他好文 时间:
2018-08-28 14:24:28
阅读次数:
129
参考“How to Solve the Square-1 | Tutorial”[1]和 Ruwix 的Square-1[2],SQ1魔方的解法是:1)顶底面方形(以顶面为黄色、底面为白色为例)。第一步为顶面调成郁金香Tulip,而底面是雪花snowflake。2)颜色块到面上。即:将所有黄色角块调 ...
分类:
其他好文 时间:
2018-08-28 14:17:08
阅读次数:
255
目标:创建scrapy项目 创建一个spider来抓取站点和处理数据 通过命令行将抓取内容导出 1.创建项目 scrapy startproject tutorial 2.创建spider cd tutorial scrapy genspider quotes quotes.toscrape.com ...
分类:
其他好文 时间:
2018-08-27 14:50:36
阅读次数:
161
Link: Codeforces #172 传送门 A: 一眼看上去分两类就可以了 1、每个矩形只有两条边相交,重合的形状为菱形 2、每个矩形四条边都有相交 对于情况1答案为$h*h/sin(a)$ 对于情况2可以列出一个二元一次方程组,手动解一下就好了 不过计算几何确实容易写挂啊…… 有几个注意点 ...
分类:
其他好文 时间:
2018-08-25 18:50:52
阅读次数:
136
KERBEROS PROTOCOL TUTORIAL This tutorial was written by Fulvio Ricciardi and is reprinted here with his permission. Mr. Ricciardi works at the Nationa ...
分类:
其他好文 时间:
2018-08-23 20:58:39
阅读次数:
190
Link: Codeforces #196 传送门 A: 枚举 #include <bits/stdc++.h> using namespace std; #define X first #define Y second typedef long long ll; typedef pair<int, ...
分类:
其他好文 时间:
2018-08-23 13:04:39
阅读次数:
145
高级接口async()和future class std::future提供了“处理并发运算之未来结果”的能力,但是get()只能调用一次,第二次调用get()会导致不可预期的行为。然而有时候,多次处理并发结果是合理的,特别是当多个线程都想处理这个结果时。基于这个目的,C++标准库提供了class ...
分类:
编程语言 时间:
2018-08-22 20:34:05
阅读次数:
161