nginx官方文档说明:http://nginx.org/en/linux_packages.html#RHEL-CentOS 1.添加源 cd /etc/yum.repos.d/ vim nginx.repo #插入下面的内容 [nginx-stable] name=nginx stable re ...
                            
                            
                                分类:
其他好文   时间:
2020-12-14 12:51:06   
                                阅读次数:
2
                             
                    
                        
                            
                            
                                
                    本文主要分享Netty中PoolChunk如何管理内存。 源码分析基于Netty 4.1.52 内存管理算法 首先说明PoolChunk内存组织方式。 PoolChunk的内存大小默认是16M,Netty将它划分为2048个page,每个page为8K。 PoolChunk上可以分配Normal内存 ...
                            
                            
                                分类:
Web程序   时间:
2020-12-10 11:25:28   
                                阅读次数:
10
                             
                    
                        
                            
                            
                                
                    代码: 1 # -*- coding:utf-8 -*- 2 import re 3 # import Util.NEO4J.neo4j_util as Neo 4 import sys 5 import os 6 import time 7 sentence="" 8 num_zhang=[] 9 ...
                            
                            
                                分类:
编程语言   时间:
2020-12-10 11:00:26   
                                阅读次数:
3
                             
                    
                        
                            
                            
                                1.findall 2.search 3.match 同search,只是从头匹配 4.split 同str.split import re a = ' a bc ' print(a.split(' ')) print(re.split(' ', a)) import re print(re.spl ...
                            
                            
                                分类:
编程语言   时间:
2020-12-10 10:58:44   
                                阅读次数:
4
                             
                    
                        
                            
                            
                                
                    Sent: Samstag, 8. Juli 2017 11:03 Subject: RE: have a quick discussion about why the CDS view has a bad performance displayed in ST05 or SAT but the t ...
                            
                            
                                分类:
数据库   时间:
2020-12-10 10:45:30   
                                阅读次数:
4
                             
                    
                        
                            
                            
                                
                    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