This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 | |
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free | |
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free | |
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free | |
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free | |
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free | |
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free | |
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nu | |
set rnu | |
set autochdir | |
set autoread | |
set cindent | |
filetype on | |
filetype indent on | |
set shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
p = 0.02 | |
def lottery() -> bool: | |
if random.random() <= p: | |
return True | |
else: | |
return False |