zkz098's blog

zkz098's blog

= 我的学习笔记 =

MC-IPV6联机

# 开始前的准备 ## 游戏本体 首先,双方需要使用一样的游戏版本和ModLoader 推荐直接将游戏打包后发给对方 <Note type="info"> 玩原版也需要安装Forge/Fabric(后续步骤需要使用) </Note> 如果需要安装模组,需要查看模组安装需求(建议在[MCMOD百科](https://www.mcmod.cn/)查看) 分为以下几种情况: 1. 客户端需装,服务端需装 2. 客户端选装,服务端需装 3. 客户端需装,服务端选装 4. 客户端需装,服务端无效 5. 客户端无效,服务端需装 1.2.3情况建议双方都安装此模组 <Note type="info"
more...

python-循环与基础类型

# 循环 ## while循环 假如要输出1-10的数字,你可以这么做: ```python print(1) print(2) print(3) print(4) print(5) print(6) print(7) print(8) print(9) print(10) ``` 或者使用python中的while循环 语法如下: ```python while 条件: # 条件为真继续循环,为假跳出 语句 ``` 使用while循环优化后: ```python i = 0 while i < 10: i += 1 print(i) ``` <Note
more...

python-运算与分支

# 逻辑与比较运算符 ## 逻辑运算符 在python中,逻辑运算符有以下几种: | 符号英文 | 作用 | | :------: | :---------------: | | and | 两真为真,一假为假 | | or | 一真为真,两假为假 | | not | 非真即假 | ## 运算符 基本运算符: | 符号 | 作用 | 举例 | 符号 | 作用 | 举例 | | :--: | :--: | :-----: | :--: | :------: | :-------
more...

python-类型与变量

# 输出一段文字 ```python print("hello world") ``` print为输出函数,会将括号内的值输出 \ "hello world"为传入的值,类型为字符串 \ 字符串内可以存储绝大部分文本 \ python的字符串可以用双引号或单引号括起来 行末不需要分号或逗号,但这样也可以: ```python print("a");print("b") ``` # python中的变量 ```python a = "This is a word" print(a) # 输出值为: This is a word ``` 在本段代码中"a"即为变量 \ python中
more...

python-安装与配置

# 步骤1.安装python解释器 前往python官网:[点我直达](https://www.python.org/) 选择Download,All releases,3.10.4(截止本文发布时最新版) \ 请使用IDM系多线程下载器 !!不使用也能在3022年前下载完!! <Note type="info"> 如果下载过于缓慢,试一下蓝奏云: [点我跳转](https://kaitaku.lanzouo.com/b030n37ah) 密码:ktks(文件夹+文件) </Note> ![step1.png](https://s2.loli.net/2022/01/10/NXaQOKqzL
more...