#include <iostream> #include <vector> using namespace std; const int MAX_LEN = 10000; int main() { int n = 0; //3^n的最大位数是:10000,乘一次3就加一位 while (cin >> ...
分类:
其他好文 时间:
2020-04-25 01:05:33
阅读次数:
69
https://www.jianshu.com/p/dc616814ce98 一、四个测试用例 准备如下 import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.extension.Adaptive; import c ...
分类:
其他好文 时间:
2020-04-25 00:48:13
阅读次数:
71
第三方存储媒介 前面我们介绍了基于 Swoole 的 Process 及 Process\Pool 模块在 PHP 中实现多进程管理,但是多进程模式下进程间是相互隔离的,无法共享数据和变量,即便是通过 global 定义的全局或超全局变量,也只是在所属进程中有效,如果要在 Swoole 实现的多进程 ...
分类:
系统相关 时间:
2020-04-24 19:49:55
阅读次数:
80
问题: 求给定数组的连续子数组个数,使得子数组之乘积,小于给定值 k Example 1: Input: nums = [10, 5, 2, 6], k = 100 Output: 8 Explanation: The 8 subarrays that have product less than ...
分类:
其他好文 时间:
2020-04-24 18:39:13
阅读次数:
43
update email_content set Content = replace(Content ,'001.11','002.22') Error Code: 1175. You are using safe update mode and you tried to update a tabl ...
分类:
数据库 时间:
2020-04-24 14:28:48
阅读次数:
85
我最近从Web安全开始学习二进制安全,分享一下自己学习过程的收获和心得体会 ...
分类:
其他好文 时间:
2020-04-23 19:30:46
阅读次数:
88
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ...
分类:
其他好文 时间:
2020-04-23 01:13:39
阅读次数:
116
感觉这个没什么好说的: import os def rev(path: str, i=0): s = '+' * i + path.split('/')[-1] + '\n' for _ in os.listdir(path): if os.path.isdir(path + '/' + _): s ...
分类:
编程语言 时间:
2020-04-23 00:40:16
阅读次数:
139
一.主题式网络主题式网络爬虫设计方案 1.爬虫名称:爬取电影 Top 500 数据 2.爬取内容:爬取电影排名,评分,介绍 3.网络爬虫设计方案概述: 思路:通过分析网页源代码,找出数据所在的标签,通过爬虫读取数据保存到csv文件中,读取文件,对数据进行清洗和处理,数据分析与可视化处理。 技术难点: ...
分类:
其他好文 时间:
2020-04-22 22:49:46
阅读次数:
79
在上一篇中已经介绍了python环境配置与IDE的安装,这里主要介绍一下弱类型语言与强类型语言。 弱类型语言 在了解python的数据类型之前,这里介绍一个概念-弱类型语言。哪什么是弱类型语言?为什么这里要介绍弱类型语言呢? 弱类型语言与强类型语言是站在变量类型处理的角度来进行区分,强类型是指不允许 ...
分类:
编程语言 时间:
2020-04-22 21:30:05
阅读次数:
97