- 博客(11)
- 收藏
- 关注
原创 kubernetes基础知识
个人博客文章链接:kubernetes基础知识 - masaka的树屋 欢迎关注 文章目录核心概念containerpodslabelsnamespacereplicationreplicationControllerreplicaSetsliveness probedaemonSetjobServiceEndpointservice type:volumeemptyDirhostPathPersistentVolumes & PersistentVolumeClaimsdeploymentov
2022-01-29 17:38:51
1507
原创 python二维数组
在创建二维数组时,若直接采用: >>> arr = [[]]*4 则此时得到的称为浅拷贝,创建了一个空列表,之后得到4个指向空列表的引用,所以会出现如下情况 >>> arr[0].append(1) >>> arr [[1], [1], [1], [1]] 因此如果要创建二维数组时,应该采用如下形式: >>> lists = [[] for i in range(3
2016-09-20 13:12:56
571
原创 codewars_DAY 2
Q1 The observed PIN: Alright, detective, one of our colleagues successfully observed our target person, Robby the robber. We followed him to a secret warehouse, where we assume to find all the stolen s
2016-09-19 23:33:48
821
原创 codewars_DAY 1
Q1: The goal of this exercise is to convert a string to a new string where each character in the new string is ‘(’ if that character appears only once in the original string, or ‘)’ if that character a
2016-09-18 13:21:51
561
原创 python学习
1. 列表的插入 2. 列表的扩充 3. strip的使用 4. 对于字典的 print 的使用 5. 字典的清除 ( clear ) 6. 对字典深复制与浅复制的区别 7. 字典中函数的使用
2016-09-07 22:37:36
179
原创 爬虫之路——Day4
最近闲着没事想统计一下目前很火的直播网站的观众数量究竟是多少,所以通过爬虫爬取了斗鱼(http://www.douyu.com/directory/all)的观众数量。首先可以通过网页源代码获取此时直播的页数,之后利用正则表达式取出主播名字以及对应主播的观众数量,存入数据库,接着再对每页都进行相同的操作,并且每间隔10分钟就统计一次,由此来获得人数随着时间变化的关系。 下图是某一时间得到的直播情
2016-08-31 14:31:42
308
原创 爬虫之路——Day3
用来导入豆瓣主页所有的推荐电影 import requests import pymongo import re import time connection = pymongo.MongoClient() att = connection.douban tags = {'热门', '最新', '经典', '可播放', '豆瓣高分', '冷门佳片', '华语', '欧美', '韩国
2016-08-28 15:36:13
384
转载 爬虫之路——DAY1
还是要恶补网络知识啊 get 与 post 的差别 1. get是从服务器上获取数据,post是向服务器传送数据。 2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到
2016-06-10 23:33:44
193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人