David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his country to b ...
分类:
其他好文 时间:
2017-12-03 19:04:13
阅读次数:
165
题目描述: In some country there are exactly n cities and m bidirectional roads connecting the cities. Cities are numbered with integers from 1 to n. If ci ...
分类:
其他好文 时间:
2017-12-02 14:15:05
阅读次数:
161
使用的XML文件如下:file.xml 导入模块 读取文件 打印一下根节点信息 打印一下根节点的孩子节点 findall 直接定位节点 iter 遍历所有节点 data {'name': 'ming'} country {'name': 'Singapore'} rank {} 4 year {} ...
分类:
编程语言 时间:
2017-12-01 18:42:58
阅读次数:
190
QAQ Ralph And His Magic Field Marco and GCD Sequence Ralph And His Tour in Binary Country Ralph and Mushrooms ...
分类:
其他好文 时间:
2017-11-21 14:50:21
阅读次数:
103
I'm so broke. I really need to find a job. So do I. Do you see anything good on the Internet? How about this? A door to door sales person to sale baby ...
分类:
其他好文 时间:
2017-11-20 20:23:43
阅读次数:
264
面向对象的命名空间: #属性:静态属性 (直接和类名关联或者直接定义在class下的变量) # 对象属性 (在类内和self关联,在类外和对象名关联的变量) # 动态属性(函数) class Foo: country = 'China' country_lst = ['China'] def __i ...
分类:
其他好文 时间:
2017-11-20 17:44:42
阅读次数:
146
/* 1. 简单工厂模式 */ public class Operation { private double _numberA = 0; private double _numberB = 0; public double NumberA { get { return this._numberA;... ...
分类:
其他好文 时间:
2017-11-19 12:28:05
阅读次数:
147
Windy has a country, and he wants to build an army to protect his country. He has picked up N girls and M boys and wants to collect them to be his sol ...
分类:
其他好文 时间:
2017-11-16 20:55:10
阅读次数:
138
# ----------------------------------------- 字段 class Class: # 静态字段,属于类 # 已经创建,并且存放在类里,而不是每创建一个对象创建一次; country = '中国' def __init__(self, name): # 普通字段-... ...
分类:
编程语言 时间:
2017-11-15 22:02:16
阅读次数:
247
题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of course, she would like to choose the most convenient lo ...
分类:
其他好文 时间:
2017-11-11 21:32:56
阅读次数:
187