// 判斷是否已登錄授權 module.exports.getDate = getDate function getDate(){ var time = new Date().toLocaleDateString().split('/').join('-') return time; } // 判斷 ...
                            
                            
                                分类:
Web程序   时间:
2021-04-06 14:39:35   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                class MyPromise { constructor(executor) { this.state = 'pending'; this.value = null; try { executor(this.resolve.bind(this),this.reject.bind(this)); } ...
                            
                            
                                分类:
其他好文   时间:
2021-04-06 14:22:04   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    Scrapy 如何控制导出顺序 1. 遇到的问题 在用Scrapy到处item的时候,发现顺序错乱(应该是按照abc的顺序排列的),并不是items.py文件中定义的顺序,那么如何控制呢? 2. fields_to_export 我在查看官网文档的时候找到了这个属性,它的解释是这样的: fields ...
                            
                            
                                分类:
其他好文   时间:
2021-04-05 12:28:39   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    Django的视图 简单的视图 我们将在 myapp 创建一个简单的视图显示: "welcome to yiibai !" 查看如下的视图 ? from django.http import HttpResponse def hello(request): text = """<h1>welcome ...
                            
                            
                                分类:
其他好文   时间:
2021-04-05 12:18:07   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    1、import time 时间分为三种格式 1.1、时间戳 # 时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量。我们运行“type(time.time())”,返回的是float类型。 print(time.time()) # 1617280797.3197777 1.2、 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-05 12:03:53   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    namespace rad{ mt19937_64 R(time(0)); inline int Rand(int l,int r){ uniform_int_distribution<int> distribution(l,r); return distribution(R); } } using ...
                            
                            
                                分类:
其他好文   时间:
2021-04-05 12:01:44   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    暴力求解法,直接遍历求最大值 class Solution { public: int maxProfit(vector<int>& prices) { int maxprofit=0; for(int i=0;i<prices.size();i++) { for(int j=i+1;j<price ...
                            
                            
                                分类:
其他好文   时间:
2021-04-05 11:41:37   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                BEGIN MERGE PGENIUS..DISC_CLS_FND AS TARGET USING (SELECT SEQ,ISVALID, DISC_ID, DISC_CLS_CODE,DECLAREDATE FROM #INSERTED_DISC_CLS WHERE DISC_TYPE=2) A ...
                            
                            
                                分类:
其他好文   时间:
2021-04-02 13:37:34   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    ps 命令的作用是显示进程信息的; | 符号,是个管道符号,表示ps 和 grep 命令同时执行; grep 命令是查找(Global Regular Expression Print),能使用正则表达式搜索文本,然后把匹配的行显示出来; ps命令有一些参数: -e : 显示所有进程 -f : 全格 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-02 13:33:41   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                #!/bin/bash hostname=192.168.170.20 rm -rf /etc/pki/CA &>/dev/null mkdir -p /etc/pki/CA/private && cd /etc/pki/CA yum -y install expect &>/dev/null #C ...
                            
                            
                                分类:
Web程序   时间:
2021-04-02 13:31:17   
                                阅读次数:
0