1.1 DjangoRestFramework基本使用 1、回顾CBV基本使用 from django.contrib import admin from django.urls import path,re_path,include urlpatterns = [ path('admin/', a ...
分类:
其他好文 时间:
2020-12-10 10:42:42
阅读次数:
3
一日一技:一个括号两种意思,正则表达式奇怪的小括号在Python里面,当我们要从一段正则表达式中提取出一部分内容的时候,我们可以把这部分内容用小括号包起来。例如:从字符串我的密码123456abc中提取123456abc,我们可以这样写正则表达式:importres=‘我的密码123456abc‘password=re.findall(‘密码(.*?)$‘,s)print(password)运行效
分类:
其他好文 时间:
2020-12-08 12:54:34
阅读次数:
5
cmd打开窗口redis-server.exe redis.windows.conf cmd打开另一个窗口redis-cli.exeset key1 ligyget key1ligy 发布订阅cmd打开另一个窗口redis-cli.exesubscribe channel1 cmd打开另一个窗口re ...
分类:
其他好文 时间:
2020-12-08 12:32:29
阅读次数:
5
一、给定url,直接下载到本地 import re import requests from bs4 import BeautifulSoup def get_gif(url, a): response = requests.get(url) # 自己电脑上的文件夹路径,默认命名 a.gif wit ...
分类:
编程语言 时间:
2020-12-07 12:35:37
阅读次数:
6
1 #include <iostream> 2 using namespace std; 3 int abc(int); 4 int fun1(int); 5 int fun1(int a) 6 { 7 cout << "递归函数1" << endl; 8 if (a == 1) 9 { 10 re ...
分类:
其他好文 时间:
2020-12-07 12:04:33
阅读次数:
4
python爬取贴吧数据 最近写个简单的爬取贴吧数据的demo,分享给大家 爬取内容包括: import requests import parsel # pip install parsel import urllib.request import urllib.parse import re i ...
分类:
数据库 时间:
2020-12-07 12:01:47
阅读次数:
9
package LeetCode_771 /** * 771. Jewels and Stones * https://leetcode.com/problems/jewels-and-stones/ * You're given strings J representing the types o ...
分类:
其他好文 时间:
2020-12-05 10:48:43
阅读次数:
7
RequestMappingHandlerAdapter 是 SpringMVC 实现 参数解析 和 结果集处理 的核心类之一。其中,解析参数的接口为 HandlerMethodArgumentResolver;处理结果集的接口为 HandlerMethodReturnValueHandler。Re... ...
分类:
移动开发 时间:
2020-12-03 12:15:36
阅读次数:
9
How Project Guideline gave me the freedom to run solo 工程指导如何给我自由的运行 ①Editor's Note: At Google Research, we’re interested in exploring how technology c ...
分类:
其他好文 时间:
2020-12-02 12:30:26
阅读次数:
5
MySQL高可用架构 MMM (Multi Master Replication Manager) 资源数量说明 主DB 2 用于主备模式的主主复制 从DB 0~N台 可以根据需要配置N台从服务器 IP地址 2n+1 N为MySQL服务器的数量 监控用户 1 用户监控数据库状态的MySQL用户(re ...
分类:
数据库 时间:
2020-11-30 15:24:02
阅读次数:
7