1 #!/usr/bin/env python 2 #__author: hlc 3 #date: 2019/5/26 4 5 #将商品信息进行存储 6 product_list = [ 7 ("Mac",8000), 8 ("bike",3000), 9 ("book",80), 10 ("jit... ...
分类:
编程语言 时间:
2019-05-26 11:02:39
阅读次数:
110
In this lesson you will learn how to talk about health and well-being. 课上内容(Lesson) What do you do to stay healthy? 你做什么才能保持健康? We are more drinking w ...
分类:
其他好文 时间:
2019-05-25 12:55:28
阅读次数:
141
''' 需求: 1、请求qq群的接口,实现传入一个群号 2、把群里每个人的 昵称、群备注、入群时间、qq号,性别,存到redis里面,用hash类型 {"qq_num":XXX,"nick":"XXX","card":"XXX","gender":"男","入群时间":"2017-01-03"} 3... ...
分类:
编程语言 时间:
2019-05-24 19:31:19
阅读次数:
134
今天用Git bash遇到的问题,看了几个回答之后发现一个比较有价值的,给大家分享一下,其他很多的回答都有很或多或少存在一些弊端。 原回答地址在stackoverflow上,附上链接--http://stackoverflow.com/questions/1967370/git-replacing- ...
分类:
其他好文 时间:
2019-05-24 12:56:37
阅读次数:
117
1 /* 2 编写车类,属性:颜色、品牌、价格 3 编写车的测试类,创建车的对象 4 */ 5 class Car{ 6 //属性也叫做成员变量 7 String color; 8 String brand; 9 double price; 10 11 //方法 12 public void pri... ...
分类:
其他好文 时间:
2019-05-23 16:42:41
阅读次数:
104
原型模式 定义 原型模式(Prototype),用原型实例制定创建对象的种类,并且通过拷贝这些原型创建新的对象。[DP] 优缺点 优点: 缺点: 特点 结构 Prototype:原型父类 ConcretePrototype1:子原型类 ConcretePrototype2:子原型类 代码 例子:展示 ...
分类:
其他好文 时间:
2019-05-23 00:17:12
阅读次数:
100
一、Car 、 二、arrey 总结: 1、第一题在课上做的时候,不知道为什么头文件打不开。 2、课后完成第一题时,默认形参值漏给形参赋初始值,导致错误。 3、operator的用法还需要巩固,还需要对重载进一步了解。 https://www.cnblogs.com/wsggwsc/p/107589 ...
分类:
其他好文 时间:
2019-05-20 23:04:44
阅读次数:
251
Switch Game HDU - 2053 Time limit1000 msMemory limit32768 kB There are many lamps in a line. All of them are off at first. A series of operations are ...
分类:
其他好文 时间:
2019-05-20 21:17:50
阅读次数:
109
1.类的继承和派生 #include <iostream> using namespace std; #include "car.h" #include "electricCar.h" int main() { // 测试Car类 Car oldcar("Audi", "a4", 2016); co ...
分类:
其他好文 时间:
2019-05-20 17:44:05
阅读次数:
107
1.car类 main.cpp car.h car.cpp battery.h battery.cpp electricCar.h electricCar.cpp 2.arraylnt类 arrayint.h arraylnt.cpp main 注意,实验1在vs系统运行时要加上include<st ...
分类:
其他好文 时间:
2019-05-20 16:46:34
阅读次数:
109