分类 关系型数据库:例如MySQL 非关系型数据库:例如MongoDB 区别 此处参考链接 关系型数据库:表和表、表和字段、数据和数据存在着关系 优点:
布局管理器 1.线性布局(LinearLayout) 常用属性: 例如 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <LinearLayout android:id="@+id/11_1" android:layout_width="200dp" android:layout_height="300dp" android:orientation="vertical" android:background="#000000" android:padding="20dp"> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background="#0000ff" android:layout_weight="1"/> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ff00ff" android:layout_weight="1"/> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background="#00ff00" android:layout_weight="1"/> </LinearLayout> </LinearLayout> 效果: 2
预备知识 XML(可扩展标记语言) XML设计用来传送及携带数据信息,不用来表现或展示数据,HTML则用来表现数据,所以XML用途的焦点是它说明
set http_proxy=http://127.0.0.1:1080 set https_proxy=http://127.0.0.1:1080
概述 网络应用模型 客户/服务器模型(C/S) 对等模型(P2P) 可扩展性指的是能够接受一定数量的主机数,因为每个主机在请求服务时也在提供服务,所
功能 传输层提供进程和进程之间的逻辑通信(网络层提供的是主机和主机之间的通信) 复用和分用 复用:应用层所有的应用进程都可以通过传输层再传输到网络
常用函数 math常用函数 取绝对值:fabs(double x) 向下取整、向上取整:floor(double x),ceil(double x) 次幂:pow(double r, double p) t^p
网络层的功能 把分组从源端传到目的端,为分组交换网上的不同主机提供通信服务。 网络层的传输单位是数据报,其中分组是数据报的片段 功能一:路由选择与
概念 数据链路: 网络中两个节点之间的逻辑通道,把实现控制数据传输协议的硬件和软件加到链路上就构成了数据链路。 帧: 链路层的协议数据单元,封装网络
概念 物理层解决如何在连接各种计算机的传输媒体上传输数据比特流,而不是指具体的传输媒体。 主要任务 确定与传输媒体接口有关的一些特性–