From 1c22fb661c7093c4cd4055857f36d653ba716ad5 Mon Sep 17 00:00:00 2001 From: "yinjun.chen1" Date: Thu, 17 Sep 2026 16:23:23 +0800 Subject: [PATCH] no message --- pythonProject/数据类型/test.py | 11 +++-------- pythonProject/数据类型/字符串/字符串.py | 18 ++---------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/pythonProject/数据类型/test.py b/pythonProject/数据类型/test.py index 97ea9ce..f9f4fd3 100644 --- a/pythonProject/数据类型/test.py +++ b/pythonProject/数据类型/test.py @@ -1,8 +1,3 @@ -bol1 = ''' -hello1 -hello2 -hello3 -hello4 -''' -st1= 'xxx' -print(isinstance(st1,str)) \ No newline at end of file +str = "chenxuan" +print(chr(36713)) +print(ord("轩")) \ No newline at end of file diff --git a/pythonProject/数据类型/字符串/字符串.py b/pythonProject/数据类型/字符串/字符串.py index 5b06aa2..f389026 100644 --- a/pythonProject/数据类型/字符串/字符串.py +++ b/pythonProject/数据类型/字符串/字符串.py @@ -1,16 +1,2 @@ -str1="陈轩" -print("单行字符串:",str1) - -print("----") -str2=''' -我是中国人 -我爱中国 -''' -print("多行行字符串:",str2) -print("----") - -str3=""" -小日本 -弄死小日本 -""" -print("多行字符串:",str3) \ No newline at end of file +s="chenxuan" +print(s[:]) \ No newline at end of file