补题时间。。。 这回出题人出的都是mbg风格的题。。。话不多说,挑几个有意思的说说。 B题,题意给定$n\leqslant 10^9$,求 \[ \sum_{p\leqslant n}\frac 1p,\ (p\ is\ prime) \] 的值并四舍五入取整。 显然直接求是不行的,因为会超时,事实 ...
                            
                            
                                分类:
其他好文   时间:
2020-11-30 15:23:12   
                                阅读次数:
1
                             
                         
                    
                        
                            
                            
                                Oracle Data Guard 报错 ORA-16057: Data Guard 配置中没有服务器
                            
                            
                                分类:
数据库   时间:
2020-11-25 12:59:34   
                                阅读次数:
14
                             
                         
                    
                        
                            
                            
                                
                    import timefrom selenium import webdriverdriver = webdriver.Chrome()driver.get('URL')driver.maximize_window()driver.implicitly_wait(10)time.sleep(2)#  ...
                            
                            
                                分类:
其他好文   时间:
2020-11-25 12:32:04   
                                阅读次数:
4
                             
                         
                    
                        
                            
                            
                                C++ 内联函数 #include <iostream> using namespace std; inline int Max(int a, int b) { if (a > b) return a; else return b; } int main() { cout << Max(23, 5) ...
                            
                            
                                分类:
其他好文   时间:
2020-11-25 12:08:44   
                                阅读次数:
2
                             
                         
                    
                        
                            
                            
                                
                    __int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
                            
                            
                                分类:
其他好文   时间:
2020-11-24 12:37:39   
                                阅读次数:
6
                             
                         
                    
                        
                            
                            
                                手动下载安装nginx 需要的安装依赖包 登录可连接公网的一台机器, 配置 nginx.repo yum源 cat nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$bas ...
                            
                            
                                分类:
其他好文   时间:
2020-11-23 12:47:29   
                                阅读次数:
23
                             
                         
                    
                        
                            
                            
                                
                    最近生产环境在这两个参数之间遇到过几次坑。这里记录下。 client_max_body_size client_max_body_size 默认 1M,表示 客户端请求服务器最大允许大小,在“Content-Length”请求头中指定。如果请求的正文数据大于client_max_body_size, ...
                            
                            
                                分类:
其他好文   时间:
2020-11-23 12:01:24   
                                阅读次数:
6
                             
                         
                    
                        
                            
                            
                                @(C++内联函数) #include <iostream> using namespace std; inline int Max(int a, int b) { if (a > b) return a; else return b; } int main() { cout << Max(23,  ...
                            
                            
                                分类:
编程语言   时间:
2020-11-21 12:39:21   
                                阅读次数:
17
                             
                         
                    
                        
                            
                            
                                1.问题分析nginx访问出现504GatewayTime-out,一般是由于程序执行时间过长导致响应超时,例如程序执行需要90秒,而nginx最大响应等待时间为30秒,这样就会出现超时。通常有以下几种情况导致:(1).程序在处理大量数据,导致等待超时。(2).程序中调用外部请求,而外部请求响应超时。(3).连接数据库失败而没有停止,死循环重新连。出现这种情况,我们可以先优化程序,缩短执行时间。另
                            
                            
                                分类:
Web程序   时间:
2020-11-21 12:15:38   
                                阅读次数:
19
                             
                         
                    
                        
                            
                            
                                
                    1.models.py class Users(models.Model): password = models.CharField(max_length=100,verbose_name='用户名') account = models.CharField(max_length=100,verbos ...
                            
                            
                                分类:
数据库   时间:
2020-11-21 12:09:40   
                                阅读次数:
11