OOP(面向对象编程 Object-Oriented Programming),是一种以对象为基础的编程模式。 优点: 易维护。 易拓展。 对象可重复使用。 四大特性: 封装性:对象属性是隐藏的,对象属性修改需要通过对象方法。 继承性:子类可以把父类的属性和方法都继承过来,无需重新定义。 多态性:多 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-27 14:16:54   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    运行环境python3.7 #coding=utf-8 import requests import time import json import re import sqlite3 url=[] for i in open("AURL.txt"): url.append(i) yaoqing=u ...
                            
                            
                                分类:
其他好文   时间:
2021-04-27 14:10:35   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    参考网址:https://www.bejson.com (网站文件部分有坑,需要擦亮眼睛) nginx k8s版本:v1.20 apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx namespace: test spec: re ...
                            
                            
                                分类:
其他好文   时间:
2021-04-26 14:08:07   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    线程 创建线程 #include <pthread.h> int pthread_create(pthread_t *restrict thread,const pthread_attr_t *restrict attr,void *(*start_routine)(void*), void *re ...
                            
                            
                                分类:
其他好文   时间:
2021-04-26 13:53:31   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    后端代码 from jinja2 import Template def index(): with open('./index.html', 'r', encoding='utf-8') as fp: template = Template(fp.read()) ret = template.re ...
                            
                            
                                分类:
其他好文   时间:
2021-04-26 13:08:43   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                1 """ 2 正则表达式:regular expression 3 4 本质: 可看成一个模板,按照这个模板规则去匹配 5 6 是一个比较强大的字符串处理工具 7 8 应用场景: 9 1》表单验证 10 2》爬虫 11 3》处理文本和数据 12 13 导入模块:re 14 15 match() 匹 ...
                            
                            
                                分类:
编程语言   时间:
2021-04-24 13:40:39   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    typeid操作符可以用来获取一个类型/表达式的名称: #include <iostream> #include <typeinfo> using namespace std; int main() { std::cout << typeid(int).name() << std::endl; re ...
                            
                            
                                分类:
其他好文   时间:
2021-04-23 12:05:50   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    CDH添加HUE时数据库连接失败 查看cloudera-scm-server日志报错信息是:ImportError: libxslt.so.1: cannot open shared object file: No such file or directory 原因是centos缺少库文件,执行如下 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:53:25   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <re ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:28:20   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    等待唤醒机制: 1:我们知道Object中有wait/notify机制,但是这种机制是基于Monitor机制实现,使用Monitor Object操作的,所以wait/notify方法是在sychronized作用域范围内才能使用的,不然会报错。 而且notify要在wait方法调用之后进行调用才有 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:27:51   
                                阅读次数:
0