摘要: navigator = {} window = {} !function(a, b) { "object" == typeof exports && "undefined" != typeof module ? b(exports) : "function" == typeof define && 阅读全文
posted @ 2021-04-24 12:00 程序员陈师兄cxycsx 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 百度网盘倍速播放代码 videojs.getPlayers("video-player").html5player.tech_.setPlaybackRate(1.5) 阅读全文
posted @ 2021-04-23 16:57 程序员陈师兄cxycsx 阅读(30) 评论(0) 推荐(0) 编辑
摘要: import requests from lxml import etree import re import csv from concurrent.futures import ThreadPoolExecutor def getOnePageData(url, writer): resp = 阅读全文
posted @ 2021-04-16 17:36 程序员陈师兄cxycsx 阅读(77) 评论(0) 推荐(0) 编辑
摘要: from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor # 线程池 # def target(url): # print(url) # def main(): # # 创建线程池 # with ThreadPool 阅读全文
posted @ 2021-04-16 16:17 程序员陈师兄cxycsx 阅读(45) 评论(0) 推荐(0) 编辑
摘要: from multiprocessing import Process # 方式一 # def sub_process(): # for i in range(11): # print(i) # def main(): # p = Process(target=sub_process) # p.st 阅读全文
posted @ 2021-04-16 15:57 程序员陈师兄cxycsx 阅读(73) 评论(0) 推荐(0) 编辑
摘要: from threading import Thread # 方式一 # def sub_thread(): # for i in range(11): # print(i) # def main(): # t = Thread(target=sub_thread) # t.start() # fo 阅读全文
posted @ 2021-04-16 15:40 程序员陈师兄cxycsx 阅读(47) 评论(0) 推荐(0) 编辑
摘要: public class HelloWorld{ public static void main (String args[]){ // 斐波那契数列 // 0 1 1 2 3 5 8 13 // 0 1 2 3 4 5 6 int res = fib(5); System.out.println( 阅读全文
posted @ 2021-04-13 21:30 程序员陈师兄cxycsx 阅读(28) 评论(0) 推荐(0) 编辑
摘要: // 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s 阅读全文
posted @ 2021-04-13 19:41 程序员陈师兄cxycsx 阅读(35) 评论(0) 推荐(0) 编辑
摘要: // 接受用户键盘输入 import java.util.Scanner; Scanner sc = new Scanner(System.in); String str = sc.next(); int num = sc.nextInt(); System.out.println(num); 阅读全文
posted @ 2021-04-13 11:49 程序员陈师兄cxycsx 阅读(87) 评论(0) 推荐(0) 编辑
摘要: // 选择结构 int score = 90; if (score > 90) { System.out.println("通过"); } else { System.out.println("pass"); } int score = 90; if (score > 90) { System.ou 阅读全文
posted @ 2021-04-13 11:48 程序员陈师兄cxycsx 阅读(34) 评论(0) 推荐(0) 编辑