一、创建字典: d = { "name": "morra", #字典是无序的 "age": 99, "gender": 'm' } a = dict() b = dict(k1=123,k2="morra") 二、字典常用操作: 修改或增加字典: dict = {'ob1':'computer', ...
分类:
编程语言 时间:
2017-06-03 00:51:20
阅读次数:
310
Description A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list ...
分类:
Web程序 时间:
2017-06-02 14:52:28
阅读次数:
315
recently try to install mysql in my computer so that I can practise some sql statement on sever.But there are some problem while install mysql package ...
分类:
数据库 时间:
2017-06-01 10:21:16
阅读次数:
224
最近在看树形DP,这题应该是树形DP的经典题了,写完以后还是有点感觉的。之后看了discuss可以用树分治来做,以后再试一试。 题目大意 找到带权树上离每个点的最远点。︿( ̄︶ ̄)︿ 题解: 对于每一个点的最远点,就是以这个点为根到所有叶子节点的最长距离。但是如果确定根的话,除了根节点外,只能找到每 ...
分类:
其他好文 时间:
2017-05-31 23:16:47
阅读次数:
410
Project 6: Deep LearningIntroduction to Computer Vision Brief Due date: Tuesday, December 6th, 11:55pm Project materials including starter code, train ...
分类:
其他好文 时间:
2017-05-31 22:17:31
阅读次数:
460
exploit-exercises.com provides a variety of virtual machines, documentation and challenges that can be used to learn about a variety of computer secur ...
分类:
其他好文 时间:
2017-05-29 13:35:21
阅读次数:
144
《计算机图形学》(第四版)正在学习中,学习目的是为了在Unity中使用shader实现不同的渲染效果。 希望在这里能把学习过程中学到的知识和遇到的问题记录下来。 工作环境是:Xcode8.3.2. 代码目录是:https://github.com/p0e0o0p0l0e0/Computer_Grap ...
分类:
其他好文 时间:
2017-05-27 20:02:10
阅读次数:
197
原题传送门 恩,就是裸的字符串处理啦。 连标程都打的是暴力(随机数据太水啦!吐槽。) 本来O(n^2q)TLE好吧。、 然后我发明了一种神奇的算法,随机数据跑的很快!,当然最坏复杂度跟标程一样啦。 不过期望复杂度是O(nq)是不是很快 好吧说下我的做法, 我用computer数组储存字符串,用ite ...
分类:
其他好文 时间:
2017-05-26 19:40:49
阅读次数:
193
Big Event in HDU Problem Description Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Comp ...
分类:
其他好文 时间:
2017-05-25 22:13:55
阅读次数:
169
如图,老是出现这个错误,百度说是打开源文件,更改编码格式,或者是更改File Encodings 的编码格式,或者是更改java compiler --use computer为eclipse, 都不管用,mvn install的时候依旧错; 在mvn install后还是不管用,后来找的资料,说是 ...
分类:
其他好文 时间:
2017-05-25 11:52:52
阅读次数:
148