上传文件至 /

This commit is contained in:
2026-04-21 11:29:52 +08:00
parent c7d06741f4
commit 0d833c7817
3 changed files with 73 additions and 0 deletions

14
yzz.py Normal file
View File

@@ -0,0 +1,14 @@
# 方式1直接用字符串表示 "Hello"
str1 = "Hello"
# 方式2用单引号包裹表示 "Hello"
str2 = 'Hello'
print("方式1双引号", str1)
print("方式2单引号", str2)
print("\n--- Hello 每个字符的ASCII码 ---")
for char in "Hello":
print(f"字符 '{char}' 的ASCII码{ord(char)}")
print("\n--- chr() 函数验证 ---")
print(f"ASCII码 65 对应的字符:{chr(65)}")