class Solution(object): def convert(self, s, numRows): if numRows==1: return s res = ['' for _ in range(numRows)] # 周期 T = numRows + numRows -2 for i ...
分类:
其他好文 时间:
2020-04-14 00:46:29
阅读次数:
91
在做弱网测试时,经常需要模拟各种网络环境,Charles恰好也提供了网络限制的功能,我们可以在"Proxy->Throttle Settings"路径下找到它,如下图所示。 "Throttle Settings"提供了一个总开关,勾选"Enable Throttling"即开启网络限制功能。在其下方 ...
分类:
其他好文 时间:
2020-04-13 22:41:52
阅读次数:
90
1、水仙花数 n = int(input()) if n>=3 and n<6: for i in range(10**(n-1),10**n): sum=0 for j in map(int,str(i)): sum=sum+j**n if sum==i: print(i) 2、数列求和 a = ...
分类:
其他好文 时间:
2020-04-13 19:31:10
阅读次数:
78
WPF可以使用矢量图,可以完美的缩放位任何尺寸。 WPF绘图的主要特点在于它是一种保留模式(retained-mode)的图形系统,不是立即模式(immdediate-mode)的图形系统。 这两中显示系统有啥差异呢。立即模式把整个界面当一个整体,改变局部其实是整个界面重绘。其他的不明白! 创建和使 ...
# 生成随机数:5M277fL3ONdxx9hM openssl rand -base64 18 ...
分类:
系统相关 时间:
2020-04-13 14:06:29
阅读次数:
66
一、分区条件 一个表最多只能有1024个分区。 MySQL5.1之后,才支持表分区功能,且分区表达式必须是整数。 MySQL5.5之后,增加了COLUMNS分区(RANGE / LIST),支持整形、日期、字符串。 分区字段,必须包含在主键字段内。 二、预处理主键 目的:将分区字段添加到主键 ALT ...
分类:
数据库 时间:
2020-04-13 00:31:04
阅读次数:
85
1 import threading 2 import time 3 4 num = 100 5 def add(): 6 global num 7 s = num 8 time.sleep(0.02) 9 num = s - 1 10 11 l = list() 12 for i in range ...
分类:
其他好文 时间:
2020-04-13 00:22:13
阅读次数:
65
题目描述: 自己的提交: class Solution: def processQueries(self, queries: List[int], m: int) -> List[int]: l = [i for i in range(1,m+1)] ans = [] for i in querie ...
分类:
其他好文 时间:
2020-04-12 20:55:18
阅读次数:
67
题目描述: 自己的提交: class Solution: def stringMatching(self, words: List[str]) -> List[str]: def strStr(haystack: str, needle: str) -> int: if not needle:ret ...
分类:
编程语言 时间:
2020-04-12 20:41:27
阅读次数:
67
问题: 给定数组(含有正数负数),求连续子集合和=k的子集合数。 Example 1: Input:nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of ...
分类:
其他好文 时间:
2020-04-12 20:20:03
阅读次数:
72