3-2-1 文本数据处理导论

This commit is contained in:
2509165015
2026-04-21 11:20:54 +08:00
parent 3048f0071d
commit bdda7b3230
2 changed files with 34 additions and 0 deletions

6
0421+2509165015/1.py Normal file
View File

@@ -0,0 +1,6 @@
print("=== 1. 打印Hello每个字符的ASCII码 ===")
for char in "Hello":
print(f"字符 '{char}' 的ASCII码: {ord(char)}")
print("\n=== 2. 验证 chr(65) ===")
result = chr(65)
print(f"chr(65) 的结果是: {result}")