no message

This commit is contained in:
陈银军
2025-09-18 14:52:49 +08:00
parent f1544ab9f9
commit c7201802f2
4 changed files with 24 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/pythonProject/基础/hehe.txt" charset="GB18030" />
</component>
</project>
+11
View File
@@ -0,0 +1,11 @@
a=1
b=2
print(a+b)
print(chr(98)) # character 将一个整数(Unicode 码点)转换为对应的字符
print(ord("陈")) # ordinal 获取某个字符在 Unicode 字符集中的“顺序编号”
print(chr(38472))
print('------')
print(ord('北'))
print(chr(21271))
+6 -7
View File
@@ -1,12 +1,11 @@
__name__=input("请输入姓名:")
def print_hi(name): def print_hi(name):
print(f'hi,{name}!!') print(f'hi,{name}!!')
def print_null(name):
print(f'未获取到用户名:{name}!')
if __name__=='__main__': if __name__=='__main__':
print_hi('chenxuan') print_hi(__name__)
else:
print_null(__name__)
a=1
b=2
print(a+b)
print(chr(98))
print(ord("陈"))
print(chr(38472))
+1 -1
View File
@@ -1 +1 @@
呵呵 �ا�ا