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