上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 38 下一页
摘要: https://www.cnblogs.com/SunshineKimi/p/14042914.html Django 原生实现外键 class AppleModel(models.Model): id=models.AutoField(primary_key=True) app_name=mode 阅读全文
posted @ 2023-02-10 14:24 坚强的小蚂蚁 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在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 坚强的小蚂蚁 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: 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 坚强的小蚂蚁 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 方法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 坚强的小蚂蚁 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 一. url """定义learning_logs的URL模式""" urlpatterns = [ # 主页 url(r'^$',views.index,name='index'), # 显示所有的主题 url(r'^topics/$',views.topics,name='topics'), # 阅读全文
posted @ 2023-01-10 13:46 坚强的小蚂蚁 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 默认安装了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 坚强的小蚂蚁 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 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 坚强的小蚂蚁 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一. 使用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 坚强的小蚂蚁 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 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 坚强的小蚂蚁 阅读(165) 评论(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 坚强的小蚂蚁 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 38 下一页