摘要:
方法 @staticmethod def get_distance(fg, bg): """ 计算滑动距离 """ target = cv2.imdecode(np.asarray(bytearray(fg.read()), dtype=np.uint8), 0) template = cv2.im 阅读全文
摘要:
true = False def wazzup(): """ 假亦真时真亦假 """ false = True or False def true(): nonlocal false false = True return false false = true() false = True if f 阅读全文
摘要:
adb logcat -c -b main -b events -b radio -b system 阅读全文
摘要:
1.迭代的方式 def reverse(self, head): if head is None or head.next is None: return head cur = head pre = None while cur: tmp = cur.next cur.next = pre pre 阅读全文
摘要:
def delete_k_node(self, head, index): """ 删除链表倒数第k个节点 :param head: :param index: :return: """ # 虚拟头结点 dummy = Node(-1) dummy.next = head # p2指向dummy,p 阅读全文
摘要:
# -*- coding: utf-8 -*- # @Time : 2022/12/27 4:37 下午 # @Author : chenxiangan # @File : mp4tomp3.py # @Software: PyCharm import click import ffmpeg @cl 阅读全文
摘要:
udp_server.c #include <stdio.h> #include <strings.h> #include "arpa/inet.h" void udp_server() { printf("%s\n","in udp server"); int sock_fd = socket(A 阅读全文
摘要:
import asyncio import datetime import json import pymongo import requests from apscheduler.schedulers.asyncio import AsyncIOScheduler from redis impor 阅读全文
摘要:
看一下app目录下的build.gradle文件,将 dependencies 闭包下这两行 implementation 'androidx.appcompat:appcompat:1.5.1' implementation 'com.google.android.material:materia 阅读全文
摘要:
# -*- coding: utf-8 -*- # @Time : 2022/12/7 10:18 上午 # @Author : chenxiangan # @File : gen_title.py # @Software: PyCharm import glob import json impor 阅读全文