前言 本文用于记录整个demo学习、开发的过程 一、key point 1.使用主流框架:mvp+kotlin+rxjava2+room+retrofit2 2.简结的ui/ux 3.第三方api的使用 https://www.sojson.com/blog/305.html 4.定期自动更新天气数 ...
分类:
移动开发 时间:
2019-01-30 14:17:19
阅读次数:
241
实例一: print(499*561+10620-365)print((5025-525)/100+18*17) 结果: print(499*561+10620-365)print((5025-525)/100+18*17) 实例二:浮点数 print(0.55+0.3) 结果: bash:81$ ...
分类:
编程语言 时间:
2019-01-26 17:06:17
阅读次数:
226
情况是SingleRoom和DoubleRoom是Room类的子类。在WebService中有一个方法是返回Room类。 XmlSerializer在序列化时只能识别父类,而不能识别子类,所以导致序列化的错误。需要将[XmlInclude(typeof(SingleRoom))]和[XmlInclu ...
@函数名(类的描述符)相当于fuc = decorator(fuc) 装饰器: 利用描述符自定制property 内置的装饰器 内置的装饰器有三个,分别是staticmethod、classmethod和property,作用分别是把类中定义的实例方法变成静态方法、类方法和类属性。由于模块里可以定义 ...
分类:
编程语言 时间:
2019-01-19 18:51:36
阅读次数:
280
Automation Anywhere是基于CLIENT-SERVER架构(control room和客户端),客户端主要是Bot Creator 和 BotRunner 主要构成: 1.WEBCR:就是control room,是用于管理用户,进程及其执行顺序的库 2.Bot Creator:开发 ...
分类:
其他好文 时间:
2019-01-18 18:38:54
阅读次数:
584
Problem: In an exam room, there are N seats in a single row, numbered 0, 1, 2, ..., N-1. When a student enters the room, they must sit in the seat tha ...
分类:
其他好文 时间:
2019-01-17 17:48:46
阅读次数:
193
#include #include #include #include using namespace std; const int m=100; struct Room{ int id; //房间号 int degree; //客房等级 int type; //客房类型 int floor; //... ...
分类:
其他好文 时间:
2019-01-16 22:55:09
阅读次数:
233
In this lesson you will learn to describe a room or place. 这节课讲学习描述一个房间或地方 课上内容(Lesson) 1. Where do you study or work? 你在哪学习/工作? Do you work at a desk ...
分类:
其他好文 时间:
2019-01-13 13:04:12
阅读次数:
180
条件测试 条件测试 每条if语句的核心是一个值为true 或 flase的表达式,称为条件测试。 if语句的一个简单例子: ps:在C中 if(表达式) 在python中 if 表达式 : 检查相等(==) 检查相等(==) 在检查是否相等时要考虑大小写,但如果只是想检查变量的值,就不用考虑大小写 ...
分类:
编程语言 时间:
2019-01-11 00:44:45
阅读次数:
271
2.4用Socket.IO处理与聊天相关的消息 我们前面说过程序必须要做三件事,其中第一个提供静态文件已经做了,现在来解决第二个,处理浏览器和服务器之间的通信。现代浏览器能用WebSocket处理浏览器跟服务器两者之间的通信。 Socket.IO为Node及客户端JavaScript提供了基于Web ...
分类:
其他好文 时间:
2019-01-06 10:44:21
阅读次数:
166