摘要:
本指南将介绍如何不借用archinstall脚本来安装纯命令行界面的ArchLinux到64位系统上。(UEFI+GPT) 零、安装前准备 首先当然是先进入liveiso环境。 增大字号: setfont ter-132n 测试网络连接是否顺畅: ping archlinux.org -c 5 验证 阅读全文
摘要:
sudo pacman-key --refresh-keys # enable ntp and ensure the time correct timedatectl set-ntp 1 timedatectl status rm -fr /etc/pacman.d/gnupg # create p 阅读全文
摘要:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass 阅读全文
摘要:
目的 把当前文件夹下的这些文件 重命名为 代码 Get-ChildItem -Path . -Filter "*.mkv" | ForEach-Object { if ($_.Name -ne "rename") { _.Name -replace "\.[^.]+$", 阅读全文
摘要:
解决方案来自https://gist.github.com/plembo/f0767e4fbcd42c6c98f8271c15ee785d?ref=techhut.tv 首先确保宿主机开启了3d加速,并且客户机安装了vmware tools。 编辑~/.vmware/preferences 在最后加 阅读全文
摘要:
把/usr/share/applications中的.desktop文件复制到~/.local/share/applications中修改[Exec]栏的参数即可。 阅读全文
摘要:
文件拆分脚本 每隔两行拆分成一个新文件。 import os with open('Main.java', 'r', encoding='UTF-8') as file: file_content = file.read() file_parts = file_content.split('\n\n 阅读全文
摘要:
A. SSeeeeiinngg DDoouubbllee 直接将原字符串翻转一下拼到原字符串的后面就构成了回文串。 string s; void solve() { cin >> s; cout << s; reverse(s.begin(), s.end()); cout << s << '\n' 阅读全文
摘要:
对拍器代码 #include <fstream> void solve() { ifstream input1; // 你的代码运行的输出 input1.open("../output.txt"); ifstream input2; // 正确的代码的输出 input2.open("../compa 阅读全文
摘要:
A. Hossam and Combinatorics 最大的就是最大值和最小值,注意要开long long。 int n; int a[N]; void solve() { cin >> n; int min_v = INF, max_v = 0; for (int 阅读全文