完成作业
This commit is contained in:
7
2509165025.py
Normal file
7
2509165025.py
Normal file
@@ -0,0 +1,7 @@
|
||||
s = "Hello"
|
||||
print("Hello 每个字符的ASCII码:")
|
||||
for char in s:
|
||||
print(f"{char}: {ord(char)}")
|
||||
|
||||
print("\n验证65对应的字符:")
|
||||
print(f"chr(65) = {chr(65)}")
|
||||
Reference in New Issue
Block a user