From ca64862d219f013929b1f9ec463eba0df0513dc8 Mon Sep 17 00:00:00 2001 From: wolf <990737463@qq.com> Date: Tue, 22 Dec 2020 00:55:08 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC1=E5=91=A8-?= =?UTF-8?q?=E7=AC=AC3=E8=8A=82-=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From a5fb7a13e6c7a5a05252f3d011c3e6d37aac9d72 Mon Sep 17 00:00:00 2001 From: wolf <990737463@qq.com> Date: Tue, 22 Dec 2020 00:55:31 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E6=9C=9F=E8=AE=AD=E7=BB=83=E8=90=A5/2=E7=8F=AD/2?= =?UTF-8?q?=E7=8F=AD=5F=E6=99=93=E5=AE=81/=E7=AC=AC=E4=B8=80=E5=91=A8-?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E8=8A=82-=E4=BD=9C=E4=B8=9A=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=20=E4=B8=BA=20=E7=AC=AC=E4=BA=8C=E6=9C=9F=E8=AE=AD?= =?UTF-8?q?=E7=BB=83=E8=90=A5/2=E7=8F=AD/2=E7=8F=AD=5F=E6=99=93=E5=AE=81/?= =?UTF-8?q?=E7=AC=AC1=E5=91=A8-=E7=AC=AC1=E8=8A=82-=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 ...2\202\350\257\276\344\275\234\344\270\23201.png" | Bin ...2\202\350\257\276\344\275\234\344\270\23202.png" | Bin 3 files changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" => "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" (100%) rename "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" => "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" (100%) rename "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" => "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" (100%) diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" similarity index 100% rename from "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" rename to "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" similarity index 100% rename from "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" rename to "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23201.png" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" similarity index 100% rename from "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\200\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" rename to "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/2\347\217\255_\346\231\223\345\256\201__\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\350\257\276\344\275\234\344\270\23202.png" -- Gitee From e64b17aafc43bd5fd0ef92818f816990ab994487 Mon Sep 17 00:00:00 2001 From: wolf <990737463@qq.com> Date: Tue, 22 Dec 2020 00:56:14 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=AC=AC1=E5=91=A8=E7=AC=AC3=E8=8A=82?= =?UTF-8?q?=E8=AF=BE=E5=90=8E=E4=BD=9C=E4=B8=9A=20=E7=AC=AC1=E5=91=A8?= =?UTF-8?q?=E7=AC=AC3=E8=8A=82=E8=AF=BE=E5=90=8E=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...76\345\220\216\344\275\234\344\270\232.md" | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/\347\254\2541\345\221\250\347\254\2543\350\212\202\350\257\276\345\220\216\344\275\234\344\270\232.md" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/\347\254\2541\345\221\250\347\254\2543\350\212\202\350\257\276\345\220\216\344\275\234\344\270\232.md" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/\347\254\2541\345\221\250\347\254\2543\350\212\202\350\257\276\345\220\216\344\275\234\344\270\232.md" new file mode 100644 index 00000000..f5ac2956 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2541\345\221\250-\347\254\2543\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/\347\254\2541\345\221\250\347\254\2543\350\212\202\350\257\276\345\220\216\344\275\234\344\270\232.md" @@ -0,0 +1,48 @@ +# 第1周第3节课后作业: + +## 1.四大基本数据结构中,哪些是可变得,哪些是不可变的? + +可变的:`list`,`dict`,`set` + +不可变的:`tuple` + +## 2.四大基本数据结构中,哪些是有序的,哪些是无序的? + +有序的:`list`,`tuple` + +无序的:`dict`,`set` + +## 3.创建四大结构实例,每个数据结构需要包括六大数据类型.(有一个数据结构是没办法包含六大) + +1.list实例 + +``` +list1 =(1,1.5,"hello world",bool(2),bytes("hello world".encode("utf-8")),None) + +print(list1) +``` + +2.tuple实例 + +``` +tup1 =(1,1.5,"hello world",bool(2),bytes("hello world".encode("utf-8")),None) + +print(tup1) +``` + +3.dict实例 + +``` +d = {"a": 1, "b": 1.5, "c": "hello world","d": bool(2),"e":bytes("hello world".encode("utf-8")),"f": None} + +print (d) +``` + +4.set实例 + +``` +set1 = {1,1.5,"hello world",bool(2),bytes("hello world".encode("utf-8")),None} + +print (set1) +``` + -- Gitee From f4746df9068fc09d2858c51b25e027f3e8123fd3 Mon Sep 17 00:00:00 2001 From: wolf <990737463@qq.com> Date: Wed, 23 Dec 2020 12:55:05 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC2=E5=91=A8-?= =?UTF-8?q?=E7=AC=AC1=E8=8A=82-=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From 272f7861b504882d14175414526988ccf8d9a2eb Mon Sep 17 00:00:00 2001 From: wolf <990737463@qq.com> Date: Wed, 23 Dec 2020 12:55:48 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E7=AC=AC2=E5=91=A8-=E7=AC=AC1=E8=8A=82-?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4=20=E7=AC=AC2=E5=91=A8-?= =?UTF-8?q?=E7=AC=AC1=E8=8A=82-=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../my_calculator.py" | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/my_calculator.py" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/my_calculator.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/my_calculator.py" new file mode 100644 index 00000000..268ea698 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\231\223\345\256\201/\347\254\2542\345\221\250-\347\254\2541\350\212\202-\344\275\234\344\270\232\346\217\220\344\272\244/my_calculator.py" @@ -0,0 +1,59 @@ + +# 第2周第1节课后作业 +# 1.加法 +def add(x,y): + result = x + y + return result + +result = add(x = 2,y = 3) +print(result) + +# 2.减法 +def min(x,y): + result = x - y + return result + +result = min(x = 2,y = 3) +print(result) + +# 3.乘法 +def mul(x,y): + result = x * y + return result + +result = mul(x = 2,y = 3) +print(result) + +# 4.除法 +def into(x,y): + result = x / y + return result + +result = into(x = 2,y = 3) +print(result) + +# 5.整除 +def divide(x,y): + result = x // y + return result + +result = divide(x = 2,y = 3) +print(result) + +# 6.取余 +def yu(x,y): + result = x % y + return result + +result = yu(x = 2,y = 3) +print(result) + + +# 7.开方 +def sqrt(x,y): + result = x **(1/y) + + return result + +result = sqrt(x = 2,y = 3) +print(result) \ No newline at end of file -- Gitee