斐波那契数列: 0 1 1 2 3 5 8 13 21 ...... 按某种特定顺序排列的数列 第一项为0,第二项为1,之后的每一项都等于前两项之和。 当数字过大时,这两种方法都有可能造出数字溢出,应使用 long 或者 double 型变量存储。 方法一: 我们用三个变量 a b c组成一个循环, ...
分类:
其他好文 时间:
2021-06-28 17:52:43
阅读次数:
0
package leetcode; import java.util.ArrayList; import java.util.List; public class demo_93 { public List<String> restoreIpAddresses(String s) { List<St ...
分类:
其他好文 时间:
2021-06-28 17:51:49
阅读次数:
0
4次FFT 1.21s #include<bits/stdc++.h> using namespace std; #define forg(i,x) for(register int i=fir[x];i;i=nxt[i]) #define uu unsigned #define scanf a14 ...
分类:
其他好文 时间:
2021-06-28 17:47:57
阅读次数:
0
public void startC138() { new Thread(() -> { try { Thread.sleep(10000); String killredis = "/home/bjlthy/gym/code/killredis.sh"; Process ps = Runtime. ...
分类:
编程语言 时间:
2021-06-28 17:45:28
阅读次数:
0
加入: import pylab pylab.rcParams['font.sans-serif'] = ['SimHei'] pylab.rcParams['font.sans-serif'] = ['Microsoft YaHei'] pylab.rcParams['axes.unicode_m ...
分类:
编程语言 时间:
2021-06-28 17:44:52
阅读次数:
0
export function chooseWXPay(params: wx.ChooseWXPayConfig) { return new Promise<{ status: 'success' | 'error' | 'cancel'; result?: string; message?: st ...
分类:
微信 时间:
2021-06-28 17:44:33
阅读次数:
0
操作字符串的类有:String、StringBuffer、StringBuilder。 String 和 StringBuffer、StringBuilder 的区别在于 String 声明的是不可变的对象,每次操作都会生成新的 String 对象,然后将指针指向新的 String 对象,而 Str ...
分类:
编程语言 时间:
2021-06-28 17:39:55
阅读次数:
0
https://www.cnblogs.com/emanlee/p/14336685.html 如果文件名,路径名称,字符串中含有中文汉字,文件头加上这个: #!/usr/bin/python#-*- coding:cp936 -*- 例如: #!/usr/bin/python #-*- codin ...
分类:
编程语言 时间:
2021-06-28 17:35:34
阅读次数:
0
https://www.cnblogs.com/jizhongfong/p/4384689.html var bind = new Binding("Enabled", OrderViewModel.Instance.Commands.ThreadManager, "IsRunning"); bin ...
# 方式一:文本编辑器的方式# with open('a.txt', mode='rt', encoding='utf-8') as f1:# res = f1.read()# data = res.replace('a1', 'b1')## with open('a.txt', mode='wt' ...
分类:
编程语言 时间:
2021-06-25 17:21:16
阅读次数:
0