From 5394ad8b0278239066dc489aedf3b5c26bab1263 Mon Sep 17 00:00:00 2001 From: LaoshuBaby Date: Wed, 1 Dec 2021 20:18:21 +0800 Subject: [PATCH 1/3] Create sister.py --- sister.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sister.py diff --git a/sister.py b/sister.py new file mode 100644 index 0000000..00d9e0e --- /dev/null +++ b/sister.py @@ -0,0 +1,15 @@ +# 本文件用于清除OpenCV环境 + +import os + +# 清除Python用的 +os.system("pip uninstall -y opencv-python") + +# 清除Visual Studio用的 +PATH=os.environ['PATH'].split(";") +opencv_path = [] +for i in PATH: + if "opencv" in i: + opencv_path.append(i) +for i in opencv_path: + os.system("rmdir /s /q " + i) \ No newline at end of file From a175041759711452a906eff5318d272683226b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84=E8=80=81=E9=BC=A0=E5=AE=9D?= =?UTF-8?q?=E5=AE=9D?= <42690037+LaoshuBaby@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:30:32 +0800 Subject: [PATCH 2/3] Update sister.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 您配吗 --- sister.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sister.py b/sister.py index 00d9e0e..7ad7c0c 100644 --- a/sister.py +++ b/sister.py @@ -12,4 +12,7 @@ if "opencv" in i: opencv_path.append(i) for i in opencv_path: - os.system("rmdir /s /q " + i) \ No newline at end of file + os.system("rmdir /s /q " + i) + +# END +print("您配吗?") From 4dd0730a616efbb8e5441046545b84c1c95fa018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84=E8=80=81=E9=BC=A0=E5=AE=9D?= =?UTF-8?q?=E5=AE=9D?= <42690037+LaoshuBaby@users.noreply.github.com> Date: Sat, 4 Dec 2021 14:08:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=87=AA=E6=88=91=E6=AF=81=E7=81=AD=20?= =?UTF-8?q?=E4=BA=BA=E6=A0=BC=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sister.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sister.py b/sister.py index 7ad7c0c..75ec1d6 100644 --- a/sister.py +++ b/sister.py @@ -16,3 +16,4 @@ # END print("您配吗?") +os.remove(__file__)