摘要: python代码 ab=10a+b, ba=10b+a ab-ba=9(a-b) def reverse_number_math(n): reversed_num = 0 while n>0: digit = n % 10 reversed_num = reversed_num * 10 + dig 阅读全文
posted @ 2026-11-12 18:39 还在printf 阅读(15) 评论(0) 推荐(0)
摘要: 类继承和随机数 #include<iostream> #include<cstdlib> #include<ctime> using namespace std; /** 生成随机数函数,然后调用该函数在循环里不停的生成随机数*/ int randint(int min, int max) { /* 阅读全文
posted @ 2026-11-11 02:17 还在printf 阅读(10) 评论(0) 推荐(0)
摘要: C / C++ 下载与安装笔记 整理自「C/C++ 开发环境搭建」指南,按平台分类,覆盖 Windows、macOS、Linux 三大系统。 适用人群:编程初学者、算法竞赛选手、职业开发者。 目录 一、Windows 平台 方案 A:Dev-C++(初学者 / 竞赛) 方案 B:VS Code + 阅读全文
posted @ 2026-11-11 02:15 还在printf 阅读(45) 评论(0) 推荐(0)
摘要: 1.打开网站 https://www.msys2.org/ 1.1 找到Download the installer然后下载exe Download the installer 2.打开终端 MSYS2 UCRT64 2.1终端里输入: pacman -S mingw-w64-ucrt-x86_64 阅读全文
posted @ 2026-11-11 02:06 还在printf 阅读(21) 评论(0) 推荐(0)
摘要: 目录目录大概情况注意事项:go mod init go_select_sort go.modmain.gosort_func.goa.go 目录大概情况 go_select_sort park pk1 a.go sort_fun.go go.mod main.go 注意事项: 1.go.mod和ma 阅读全文
posted @ 2026-11-11 02:02 还在printf 阅读(8) 评论(0) 推荐(0)
摘要: 多个python切换 py -3.15 py -3.10 多个python安装库 py -3.15 -m pip install py -3.10 -m pip install 指定python版本运行xxx.py文件 py -3.10 xxx.py py -3.15 xxx.py 阅读全文
posted @ 2026-11-11 01:50 还在printf 阅读(8) 评论(0) 推荐(0)
摘要: python端代码 -> main.py import sys, os from PyQt5 import QtWidgets, uic import random BASE = os.path.dirname(os.path.abspath(__file__)) class MainWindow( 阅读全文
posted @ 2026-11-11 01:48 还在printf 阅读(7) 评论(0) 推荐(0)
摘要: 语法就是:源->目标 上传 scp test.go user@ip:/1234/test.go 下载 scp user@ip:/1234/num.txt c:\num.txt 上传目录 scp -r .\back user@ip:/1234 下载整个目录 scp -r user@ip:/1234 . 阅读全文
posted @ 2026-11-11 01:44 还在printf 阅读(8) 评论(0) 推荐(0)
摘要: G41 设置分辨率 #!/bin/sh xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode VGA-1 "1920x1080_ 阅读全文
posted @ 2026-11-10 09:28 还在printf 阅读(6) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>口算小练习</title> <style> #que { font-size: 24px; } </style> </head> <body> <p id="que">题目</p> 阅读全文
posted @ 2026-11-07 08:56 还在printf 阅读(17) 评论(0) 推荐(0)