会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
坚强的小蚂蚁
每天都要有收获
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
14
···
39
下一页
2023年2月8日
ubuntu18容器中安装python3.10
摘要: 在python官网https://www.python.org/下载python3.10的tgz的源码包。安装编译环境apt-get updateapt install wget build-essential checkinstall apt install libreadline-gplv2-d
阅读全文
posted @ 2023-02-08 17:56 坚强的小蚂蚁
阅读(1745)
评论(0)
推荐(0)
2023年2月6日
selenium控制div内滚动条
摘要: 1. div内的ID定位及滚动js = 'document.getElementById("zhizi_mask").scrollTop=10000'driver.execute_script(js) 2. div内的classname定位及滚动,注意getElements返回的是个列表所以[0]j
阅读全文
posted @ 2023-02-06 13:33 坚强的小蚂蚁
阅读(1064)
评论(0)
推荐(0)
selenium获取元素定位值
摘要: 方法1鼠标点击网页某个坐标from selenium.webdriver.common.action_chains import ActionChains driver.get(start_url)onChains(driver).move_by_offset(971, 437).click().p
阅读全文
posted @ 2023-02-06 09:57 坚强的小蚂蚁
阅读(169)
评论(0)
推荐(0)
2023年1月10日
url的path中传入id参数的用法
摘要: 一. url """定义learning_logs的URL模式""" urlpatterns = [ # 主页 url(r'^$',views.index,name='index'), # 显示所有的主题 url(r'^topics/$',views.topics,name='topics'), #
阅读全文
posted @ 2023-01-10 13:46 坚强的小蚂蚁
阅读(461)
评论(0)
推荐(0)
2022年12月27日
ubuntu20安装python2, python3及版本配置
摘要: 默认安装了python3 一. 安装Python2.7 1.安装 apt install python2 update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 update-alternatives --i
阅读全文
posted @ 2022-12-27 18:18 坚强的小蚂蚁
阅读(1756)
评论(0)
推荐(0)
2022年12月22日
扫描开放端口基本使用
摘要: nmap简单使用 apt install nmap 从控制台发出的以下命令确定哪些端口正在侦听来自网络的TCP连接: nmap -sT -p- 10.10.8.8 -sT 告诉 nmap 扫描 TCP 端口。 -p- 扫描所有65535端口。 要扫描UDP端口,请使用-uT而不是-sT: nmap
阅读全文
posted @ 2022-12-22 16:52 坚强的小蚂蚁
阅读(337)
评论(0)
推荐(0)
2022年12月12日
k8s在pod内访问集群外部地址
摘要: 一. 使用IP apiVersion: v1 kind: Service metadata: name: nginx-ip spec: ports: - protocol: TCP port: 88 apiVersion: v1 kind: Endpoints metadata: name: ngi
阅读全文
posted @ 2022-12-12 09:49 坚强的小蚂蚁
阅读(1861)
评论(0)
推荐(0)
2022年12月9日
把字符串格式的UTC时间,转为北京时间
摘要: from datetime import datetime, timedelta push_time = '2022-03-23T08:40:10.895Z' push_time1 = datetime.strptime(push_time[0:-5], "%Y-%m-%dT%H:%M:%S") +
阅读全文
posted @ 2022-12-09 17:19 坚强的小蚂蚁
阅读(191)
评论(0)
推荐(0)
自定义分页样式
摘要: 一.基本安装和配置 1.pip install django-pure-pagination 2. settings.py中 install app中添加'pure_pagination', 3. settings.py中添加参数 PAGINATION_SETTINGS = { 'PAGE_RANG
阅读全文
posted @ 2022-12-09 11:08 坚强的小蚂蚁
阅读(228)
评论(0)
推荐(0)
2022年12月8日
models中定义的choices 字段在页面中显示值
摘要: 比如在model中定义了choice字段online online_choice = (('1', '在线'), ('0', '离线')) online = models.CharField(max_length=10, choices=online_choice) 在template中应该怎么显示
阅读全文
posted @ 2022-12-08 16:25 坚强的小蚂蚁
阅读(76)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
39
下一页
公告