代码: 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
一:导入如百度地图等的外部类。 步骤:1.首先 将androidstudio项目显示切换到 project 状态显示项目 2.然后添加.jar文件,将所有的.jar文件放入libs文件夹内(libs文件夹就在项目文件夹下),然后在引入的.jar文件上右键然后点击 Add As Library... ...
分类:
移动开发 时间:
2020-12-10 10:41:40
阅读次数:
8
为什么要用线程池 新启线程需要新建——执行任务——销毁这个过程,我们准备一批线程放在那,当需要执行任务的时候就可以直接拿到线程来用,节约了新建和销毁的过程,提高效率。 线程资源是稀缺而昂贵的,所以我们需要利用线程池统一管理,限制线程数。 创建线程池时各个参数的含义 corepoolsize:线程池的 ...
分类:
移动开发 时间:
2020-12-10 10:41:27
阅读次数:
16
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server at com.netflix.discovery.shared.transport.decora ...
分类:
Web程序 时间:
2020-12-10 10:39:12
阅读次数:
7
背景: 工作上需要删除或则归档一张大表,这时候用pt-archiver可以很好的满足要求,其不仅可以归档数据,还有删除、导出到文件等功能。并且在主从架构当中,可以兼顾从库(一个或则多个)进行归档,避免归档、删除数据时候压力太大,造成从库的延迟。该工具的目标是一个低影响,从表中剔除旧数据,而不会影响O ...
分类:
其他好文 时间:
2020-12-09 12:33:51
阅读次数:
13
问题: 给定一颗BST(二叉搜索树),其中存在两个节点顺序颠倒,请找出他们,并恢复正确次序。 Example 1: Input: root = [1,3,null,null,2] Output: [3,1,null,null,2] Explanation: 3 cannot be a left ch ...
分类:
其他好文 时间:
2020-12-09 12:24:32
阅读次数:
5
在布局根节点加上下面三行 android:id="@+id/view_parent" android:clickable="true" android:focusableInTouchMode="true" 在代码中监听view_parent的FocusChangeListener事件 view_p ...
分类:
移动开发 时间:
2020-12-09 12:22:44
阅读次数:
17