Linux 找到占用端口的进程信息: netstat -lnp|grep 端口号 例如:netstat -lnp|grep 8080 就是找到正在使用8080端口的进程 关闭进程: kill -9 进程PID 例如:kill -9 6666 就是杀死进程PID为6666的进程 Windows 找到占 ...
1. 报错 ERROR: Network internal declared as external, but could not be found. Please create the network manually using `docker network create internal` ...
分类:
Web程序 时间:
2020-04-06 17:49:24
阅读次数:
307
题意: 给一个数字n 求离n最近(且不等)的回文串 存在多个答案返回最小的 首先很容易想到 将数字分为两段,如 12345 -> 123/45,然后将后半段根据前面的进行镜像重置 123/45 -> 12321 那,如果数字刚好是回文串,就把前半段-1就好了 但是存在以下例外,就是当前半段 +1 或 ...
分类:
其他好文 时间:
2020-04-06 15:59:20
阅读次数:
64
参考: https://elixir.bootlin.com/linux/v4.9.218/source/sound/soc/soc-core.c#L3314 https://blog.csdn.net/DroidPhone/article/details/7283833 在移动设备中,Codec的 ...
分类:
其他好文 时间:
2020-04-06 15:15:32
阅读次数:
67
# 无参存储过程 DELIMITER $$ CREATE PROCEDURE pro_insert_employees() BEGIN insert into employees (first_name,last_name) VALUES("1","1"),("2","2"),("3","3"); ...
分类:
其他好文 时间:
2020-04-06 13:40:18
阅读次数:
51
参考:Maven实用技巧 https://msd.misuland.com/pd/3255817963235707346 报错: maven项目 mvn install 报错: [ERROR] Failed to execute goal on project 项目名XXX: Could not r ...
分类:
其他好文 时间:
2020-04-06 11:46:59
阅读次数:
118
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
其他好文 时间:
2020-04-06 11:37:02
阅读次数:
81
练习场景:验证百度登录框里面的【下次自动登录】有没有被默认勾选。 具体代码: # coding=utf-8 from selenium import webdriver import time # config driver = webdriver.Chrome() url = 'https://b ...
分类:
编程语言 时间:
2020-04-06 11:28:16
阅读次数:
134
在PO模式之前,脚本只写一个test_*****.py的文件。这样写的缺点是所有代码在一个文件中,另一个文件对同一个操作再写一遍。并且代码量特别大。所以多文件区分PO模式应运而生。这样修改不同的功能,只要找到对应的文件即可,代码也变的轻便,易于理解。 创建一个测试项目,里面有base文件夹,scri ...
分类:
移动开发 时间:
2020-04-06 09:54:39
阅读次数:
84
Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi ...
分类:
其他好文 时间:
2020-04-06 09:49:05
阅读次数:
76