步骤 新建一个分支 做了一些修改,然后 add,commit提交 如果这一步没有冲突就直接 push。 如有这一步出现冲突,则Git会停止rebase并会让你去解决 冲突;在解决完冲突后,用 命令去更新这些内容的索引(index), 然后,你无需执行 git commit,只要执行: 这样git会继 ...
分类:
其他好文 时间:
2020-05-04 11:49:10
阅读次数:
70
Beautiful Land #include<cstdio>价值背包 #include<cstdlib> #include<iostream> #include<algorithm> #include<cmath> #include<cstring> #include<map> #define m ...
分类:
其他好文 时间:
2020-05-03 20:35:46
阅读次数:
57
def all_equal(lst): print(lst[:]) # [1, 2, 3, 4, 5, 6] # [1, 1, 1, 1] print(lst[::-1]) # [6, 5, 4, 3, 2, 1] # [1, 1, 1, 1] print(lst[1:] == lst[:-1]) ...
分类:
其他好文 时间:
2020-05-03 14:48:11
阅读次数:
52
from re import sub def camel(s): print(s) # some_database_field_name # Some label that needs to be camelized # some-javascript-property # some-mixed_s ...
分类:
其他好文 时间:
2020-05-03 14:45:22
阅读次数:
68
def capitalize_every_word(s): print(s) # hello world! print(s.title()) capitalize_every_word('hello world!') # Hello World! 2020-05-03 ...
分类:
其他好文 时间:
2020-05-03 14:31:29
阅读次数:
57
表3 IP地址规划表 设备名称 VLAN端口名称 IP地址 端口连接状况 RG-S3760-1 VLAN1 192.168.11.1/24 F0/1-RG-S2126G1 VLAN2 192.168.12.1/24 F0/2-RG-S2126G2 VLAN10 192.168.13.1/24 F0/ ...
分类:
其他好文 时间:
2020-05-03 12:28:18
阅读次数:
110
前言 用 WebGL 渲染的 3D 机房现在也不是什么新鲜事儿了,这篇文章的主要目的是说明一下,3D 机房中的 eye 和 center 的问题,刚好在项目中用上了,好生思考了一番,最终觉得这个例子最符合我的要求,就拿来作为记录。 效果图 http://hightopo.com/demo/3DRo. ...
分类:
Web程序 时间:
2020-05-03 01:23:34
阅读次数:
85
7-1 Knuth洗牌法 (20分) Knuth 洗牌法是生成 { 1, 2, ..., n } 的一个随机重排列的算法。与每次反复随机生成一个数字,直到获得一个不重复的新数字的算法不同,Knuth 洗牌法从原始序列 { 1, 2, ..., n } 开始,逐次洗牌。洗牌的方法是从左到右,每轮从没确 ...
分类:
其他好文 时间:
2020-05-02 09:38:13
阅读次数:
118
PyQt5 无边框窗口重新定义鼠标事件 #! /usr/bin/env python # -*- coding:utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtCore impor ...
分类:
其他好文 时间:
2020-05-01 20:55:07
阅读次数:
92