功能一瞥 命令菜单 名言与笑话 宋代诗词 天气预报(精确到市区,高德地图api) 看图猜成语 猜谜语 其它 生日提醒 备忘提醒 闲聊对话(图灵机器人api) 更多
小丸子 发布于 收录于 生活 回眸相识,似轻舟之聚于江洋,飞鸟之遇于穹苍。 若非缘起一方,则无来日悠长。 至于相知,则并肩携手,逍遥同游。 惠风和畅,尤见山水青秀, 烈日灼心,愈
主机记录 域名前缀 记录类型 类型 说明 A 将域名指向一个IPV4地址 CNAME 将域名指向另一个域名 AAAA 将域名指向一个IPV6地址 NS 将子域名指定其他DNS服务器
数据结构 数组 Array 栈 Stack 队列 Queue 优先队列(Priority Queue, heap) 链表 LinkedList(single/double) Tree/ Binary Tree Binary Search Tree HashTable Disjoint Set Trie BloomFliter LRU Cache 算法分类 线性结构 莫队 (Mo’s Algorithm) 前缀和 基本数组 向量 链接
create a new repository on the command line 1 2 3 4 5 git init git add README.md git commit -m "first commit" git remote add origin
[email protected]:user/project_name.git git push -u origin master push an existing repository from the command line 1 2 git remote add origin
[email protected]:user/project_name.git git push -u origin master tag 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # 查
提取mp4中的音频另存为mp3 1 ffmpeg -i foo.mp4 bar.mp3
没有什么编码是不能转的 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 import hashlib import base64 # string to md5 input_text = "我能吞下玻璃而不伤身体&
发送POST请求,内容为json格式。并忽略证书验证。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import json import urllib3 urllib3.disable_warnings() # 屏蔽警告忽略证书的警告。 # cert_reqs='CERT_NONE' 忽略https证书
字典 合并两个字典 merge two dictionaries 1 2 3 4 5 dict1 = {'a': 1, 'b': 2} dict2 = {'c': 3, 'd': 4} dict3 = {**dict1, **dict2} # python3.5+ 写法 dict3 = dict(dict1, **dict2) # python3.5- 写法 print(dict3) 字典按值排序 sort a Python dict by value 1 2 3 xs = {'a': 4, 'b': 3, 'c': 2, 'd': 1}
四月的风,撩乱倒映水中白云的心。 迁徙的鸟,勾起岸旁垂杨柳的思恋。 迷乱的花,怎能敌四季长青的松乔。 暮霭晨雾,是否也是春姑娘的话语。