startWith 在订阅的时候插入发送事件,后加入的先发送。完成事件发送时不会插入。 let ob = PublishSubject<String>() ob.startWith("插入1").startWith("插入2").subscribe(onNext: { element in prin ...
分类:
编程语言 时间:
2020-11-25 12:35:08
阅读次数:
3
Github使用记录 配置Git $ ssh-keygen -t rsa -C "your_email@youremail.com" 改为自己的name和地址,继续回车,默认路径和密码,继续回车,生成.ssh,打开id_rsa.pub,复制key到github的setting中。 $ ssh -T ...
分类:
其他好文 时间:
2020-11-25 12:05:08
阅读次数:
7
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou ...
分类:
编程语言 时间:
2020-11-21 12:37:58
阅读次数:
15
#内置函数:print , sum, max , min , pow, sorted#数值操作print(sum([1, 2, 3])) #6print(max([2, 3, 1])) #3print(min([1, 2, 3])) #1print(abs(-2)) #2 abs绝对值print(r ...
分类:
编程语言 时间:
2020-11-13 13:22:06
阅读次数:
37
数据结构:集合,线性结构,树形结构,图形结构 集合:纯粹的集合 线性结构:一对一 数组 树形结构:一对多 菜单/文件夹/树形控件 图形结构:多对多,地图/拓扑图/物流 常见数据结构: Array/ArrayList/List/LinkedList/Queue/Stack/HastSet/Sorted ...
链表类依赖于cmath头文件,使用ListNode,List四个文件实现: ListNode.h: 1 /********************************************* 2 ListNode.h 3 链表节点(模板)类 ListNode 4 T 节点数据 5 pred 前 ...
分类:
其他好文 时间:
2020-11-12 14:13:56
阅读次数:
5
git fetch, git pull, git pull -rebase区别 抄经的和尚 2016-04-20 13:51:32 15084 收藏 9 分类专栏: 技术总结 文章标签: git pull git rebase git merge 1、git fetch vs git pull 都是 ...
分类:
其他好文 时间:
2020-11-10 11:42:33
阅读次数:
29
# 放弃merger master到mzhuo分支的代码,甚至之后新提交的代码也放弃(最终git上没有操作记录) # 前期进入分支操作 1 cd Documents/Yv/ 2 ls 3 git status 4 git pull origin 5 git branch 6 git checkout ...
分类:
其他好文 时间:
2020-11-07 16:25:13
阅读次数:
19
1、 生成publicKey和password 找到maven资源库中druid的jar包,如:C:\Users\a\.m2\repository\com\alibaba\druid\1.1.6,其中a为用户名。 打开cmd,将路径切换至C:\Users\a\.m2\repository\com\a ...
分类:
数据库 时间:
2020-11-06 02:10:35
阅读次数:
32
指令 提前配置 查看当前版本:git --version 查看git配置信息:git config --list 配置提交人姓名:git config --global user.name 你的姓名 配置提交人邮箱:git config --global user.email 你的邮箱 提交步骤 初 ...
分类:
其他好文 时间:
2020-11-04 19:13:54
阅读次数:
21