注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
def CassificationToMD(textList, level=-1): | |
data = list() | |
count = 0 | |
noIndex = False | |
while True: | |
if len(textList[count:]) == 0: | |
break |
from typing import Tuple | |
import random | |
def is_prime_of_miller_rabin_test(n: int, trials_time: int = 5) -> bool: | |
def test_prime_in_100(n: int) -> bool: | |
prime_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, | |
41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] | |
for i in prime_list: | |
if n % i == 0: |
import random | |
from typing import Tuple | |
def get_reciprocal(value: int, mod: int) -> int: | |
for i in range(1, mod): | |
if (i * value) % mod == 1: | |
return i | |
return -1 |
from abc import ABC, abstractmethod | |
class IVodeoEngine(ABC): | |
@abstractmethod | |
def split_video(self, video_path: str, destination_folder: str): | |
pass | |
@abstractmethod | |
def check_video_image(self, destination_folder: str): |