From 9c31498cc52ac032708d0ac274e74e7ba15a05f3 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:11:53 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E5=91=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\345\233\233\345\221\250/.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/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From 8dc65caeed716254cb57399bd878a2b5eafdbd71 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:12:39 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\200\350\212\202\350\257\276/.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/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From 8344b4f670d156c8baaddc4e5d5c509fce3a93ef Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:12:47 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\272\214\350\212\202\350\257\276/.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/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From 73ec7d86876b12e92d10173fe747f9528ffbd6e3 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:12:55 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\211\350\212\202\350\257\276/.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/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\211\350\212\202\350\257\276/.keep" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\211\350\212\202\350\257\276/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\211\350\212\202\350\257\276/.keep" new file mode 100644 index 00000000..e69de29b -- Gitee From cf32b6e8c841229f50ecdf7c2554d63b41d1f607 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:13:48 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E5=91=A8=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classtest.py" | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" new file mode 100644 index 00000000..5ad3832c --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" @@ -0,0 +1,23 @@ +class MyMath: + def add(self, a, b): + return a + b + + def sub(self, a, b): + return a - b + + def mul(self, a, b): + return a * b + + def div(self, a, b): + return a / b + + def exdiv(self, a, b): + return a // b + + def rem(self, a, b): + return a % b + + def pow(self, a, b): + return a ** b + +class \ No newline at end of file -- Gitee From 689877f5e632df45b4c1daa3e8404d4d7c5c38d6 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:14:26 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=9C=9F=E8=AE=AD=E7=BB=83=E8=90=A5/4?= =?UTF-8?q?=E7=8F=AD/4=E7=8F=AD=5FLiPing/=E7=AC=AC=E5=9B=9B=E5=91=A8/?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E8=8A=82=E8=AF=BE/classtest.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classtest.py" | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" deleted file mode 100644 index 5ad3832c..00000000 --- "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/classtest.py" +++ /dev/null @@ -1,23 +0,0 @@ -class MyMath: - def add(self, a, b): - return a + b - - def sub(self, a, b): - return a - b - - def mul(self, a, b): - return a * b - - def div(self, a, b): - return a / b - - def exdiv(self, a, b): - return a // b - - def rem(self, a, b): - return a % b - - def pow(self, a, b): - return a ** b - -class \ No newline at end of file -- Gitee From 75a94126b27bfb4cba0213e245f7d30ecdace3d6 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:14:49 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E5=91=A8=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../time.py" | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/time.py" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/time.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/time.py" new file mode 100644 index 00000000..04241cdc --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\270\200\350\212\202\350\257\276/time.py" @@ -0,0 +1,23 @@ +import datetime + +# 时间戳和datetime.datetime对象之间的转换 +timestamp = datetime.datetime.now().timestamp() +date = datetime.datetime.fromtimestamp(timestamp) + +# 时间戳和字符串之间的转换 +timestamp2 = datetime.datetime.now().timestamp() +date2 = datetime.datetime.fromtimestamp(timestamp2) +str2 = date.strftime('%Y-%m-%d %H:%M:%S') +datestamp = datetime.datetime.strptime(str2, '%Y-%m-%d %H:%M:%S') +timestamp4 = datestamp.timestamp() + +# 字符串和datetime之间的转换 +str3 = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') +date3 = datetime.datetime.strptime(str3, '%Y-%m-%d %H:%M:%S') + +# 函数get_date() +def get_date(day_delta): + print(datetime.datetime.now() + datetime.timedelta(days=day_delta)) + + +get_date(-1) -- Gitee From 121b5c19dc13cd91e154f06b2e7fd9b1311cb836 Mon Sep 17 00:00:00 2001 From: LinkPinGit <5457109+linkpingit@user.noreply.gitee.com> Date: Fri, 8 Jan 2021 11:33:40 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E5=91=A8=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E8=8A=82=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classtest.py" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/classtest.py" diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/classtest.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/classtest.py" new file mode 100644 index 00000000..573d4853 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_LiPing/\347\254\254\345\233\233\345\221\250/\347\254\254\344\272\214\350\212\202\350\257\276/classtest.py" @@ -0,0 +1,35 @@ +class MyMath: + def add(self, a, b): + return a + b + + def sub(self, a, b): + return a - b + + def mul(self, a, b): + return a * b + + def div(self, a, b): + return a / b + + def exdiv(self, a, b): + return a // b + + def rem(self, a, b): + return a % b + + def pow(self, a, b): + return a ** b + +class person(object): + def eat(self): + print("I can eat") + def sleep(self): + print("I can sleep") + +class Lihua(person): + name = "Lihua" + nation = "China" + +class Jack(person): + name = "Jack" + nation = "USA" \ No newline at end of file -- Gitee