commit 53656d9c13c83d5493a8849bfd4d12e3ce053e19 Author: macbook Date: Sun Dec 17 23:12:19 2023 +0800 no message diff --git a/pythonProject/.idea/.gitignore b/pythonProject/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/pythonProject/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/pythonProject/.idea/inspectionProfiles/profiles_settings.xml b/pythonProject/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/pythonProject/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/pythonProject/.idea/misc.xml b/pythonProject/.idea/misc.xml new file mode 100644 index 0000000..2a01189 --- /dev/null +++ b/pythonProject/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/pythonProject/.idea/modules.xml b/pythonProject/.idea/modules.xml new file mode 100644 index 0000000..e15ec35 --- /dev/null +++ b/pythonProject/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/pythonProject/.idea/pythonProject.iml b/pythonProject/.idea/pythonProject.iml new file mode 100644 index 0000000..2c80e12 --- /dev/null +++ b/pythonProject/.idea/pythonProject.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/pythonProject/1.py b/pythonProject/1.py new file mode 100644 index 0000000..ca17aa4 --- /dev/null +++ b/pythonProject/1.py @@ -0,0 +1,12 @@ +def print_hi(name): + print(f'hi,{name}!!') + +if __name__=='__main__': + print_hi('chenxuan') + +a=1 +b=2 +print(a+b) +print(chr(98)) +print(ord("陈")) +print(chr(38472)) \ No newline at end of file diff --git a/pythonProject/2.py b/pythonProject/2.py new file mode 100644 index 0000000..3eb45c2 --- /dev/null +++ b/pythonProject/2.py @@ -0,0 +1,3 @@ +fp=open('hehe.txt','w') +print('呵呵',file=fp) +fp.close() \ No newline at end of file diff --git a/pythonProject/3.py b/pythonProject/3.py new file mode 100644 index 0000000..619a57a --- /dev/null +++ b/pythonProject/3.py @@ -0,0 +1,2 @@ +print('北京',end='xx') +print('欢迎你!') \ No newline at end of file diff --git a/pythonProject/4.py b/pythonProject/4.py new file mode 100644 index 0000000..d1acff7 --- /dev/null +++ b/pythonProject/4.py @@ -0,0 +1,2 @@ +name=input('请输入您的姓名:') +print(name) \ No newline at end of file diff --git a/pythonProject/5.py b/pythonProject/5.py new file mode 100644 index 0000000..6b0a15f --- /dev/null +++ b/pythonProject/5.py @@ -0,0 +1,4 @@ +#这是单行注释 +"""" + +""" \ No newline at end of file diff --git a/pythonProject/hehe.txt b/pythonProject/hehe.txt new file mode 100644 index 0000000..d54909a --- /dev/null +++ b/pythonProject/hehe.txt @@ -0,0 +1 @@ +呵呵