From b6c9ad28af7bbf4aefdc9c5e7f449069ef3f9bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Sun, 24 Jan 2021 18:26:56 +0800 Subject: [PATCH] reeee some littel change --- SR-PY.py | 2 +- {libs => bin}/Game_threads/__init__.py | 1 + {libs => bin}/Game_threads/orbit_demo.py | 0 bin/__init__.py | 14 ++++++++ {libs => bin}/client.py | 0 {libs => bin}/configs.py | 0 {libs => bin}/delivery.py | 0 {libs => bin}/main.py | 0 {libs => bin}/server.py | 0 {libs => bin}/tools.py | 0 libs/__init__.py | 7 ---- test.py | 33 +++++++++---------- .../test_mutiproser.py | 0 test_speed.py => tests/test_speed.py | 0 test_threading.py => tests/test_threading.py | 0 15 files changed, 31 insertions(+), 26 deletions(-) rename {libs => bin}/Game_threads/__init__.py (85%) rename {libs => bin}/Game_threads/orbit_demo.py (100%) create mode 100644 bin/__init__.py rename {libs => bin}/client.py (100%) rename {libs => bin}/configs.py (100%) rename {libs => bin}/delivery.py (100%) rename {libs => bin}/main.py (100%) rename {libs => bin}/server.py (100%) rename {libs => bin}/tools.py (100%) delete mode 100644 libs/__init__.py rename test_mutiproser.py => tests/test_mutiproser.py (100%) rename test_speed.py => tests/test_speed.py (100%) rename test_threading.py => tests/test_threading.py (100%) diff --git a/SR-PY.py b/SR-PY.py index a2f58ae..31ef167 100644 --- a/SR-PY.py +++ b/SR-PY.py @@ -4,7 +4,7 @@ mail: 3695888@qq.com """ import pyglet -import libs +import bin import sys import os diff --git a/libs/Game_threads/__init__.py b/bin/Game_threads/__init__.py similarity index 85% rename from libs/Game_threads/__init__.py rename to bin/Game_threads/__init__.py index 26d0a8f..1c10d9b 100644 --- a/libs/Game_threads/__init__.py +++ b/bin/Game_threads/__init__.py @@ -5,3 +5,4 @@ mail: 3695888@qq.com # import folders # import in this forder +import orbit_demo \ No newline at end of file diff --git a/libs/Game_threads/orbit_demo.py b/bin/Game_threads/orbit_demo.py similarity index 100% rename from libs/Game_threads/orbit_demo.py rename to bin/Game_threads/orbit_demo.py diff --git a/bin/__init__.py b/bin/__init__.py new file mode 100644 index 0000000..2b7ffb1 --- /dev/null +++ b/bin/__init__.py @@ -0,0 +1,14 @@ +""" +writen by shenjackyuanjie +mail: 3695888@qq.com +""" +# import folders +import Game_threads + +# import in this forder +import main +import tools +import client +import server +import configs +import delivery \ No newline at end of file diff --git a/libs/client.py b/bin/client.py similarity index 100% rename from libs/client.py rename to bin/client.py diff --git a/libs/configs.py b/bin/configs.py similarity index 100% rename from libs/configs.py rename to bin/configs.py diff --git a/libs/delivery.py b/bin/delivery.py similarity index 100% rename from libs/delivery.py rename to bin/delivery.py diff --git a/libs/main.py b/bin/main.py similarity index 100% rename from libs/main.py rename to bin/main.py diff --git a/libs/server.py b/bin/server.py similarity index 100% rename from libs/server.py rename to bin/server.py diff --git a/libs/tools.py b/bin/tools.py similarity index 100% rename from libs/tools.py rename to bin/tools.py diff --git a/libs/__init__.py b/libs/__init__.py deleted file mode 100644 index 26d0a8f..0000000 --- a/libs/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -""" -writen by shenjackyuanjie -mail: 3695888@qq.com -""" -# import folders - -# import in this forder diff --git a/test.py b/test.py index 55d190e..d06ef0e 100644 --- a/test.py +++ b/test.py @@ -3,33 +3,30 @@ writen by shenjackyuanjie mail: 3695888@qq.com """ -import libs - +import bin A = [2.573, 3, ["m", "kg"], ["N", "s"]] B = [2.45, -7, ["N", "kg"], ["m", "s"]] C = [1.14, 5, ["m"], ["s"]] D = [1.419, -4, ["kg"], ["m"]] -print("A = " , A) -print("B = " , B) -print("C = " , C) -print("D = " , D) +print("A = ", A) +print("B = ", B) +print("C = ", C) +print("D = ", D) -a = libs.P_C.S_N_M(A, B) -b = libs.P_C.S_N_D(A, B) -c = libs.P_C.S_N_M(b, B) -d = libs.P_C.S_N_D(a, B) +a = bin.tools.S_N_M(A, B) +b = bin.tools.S_N_D(A, B) +c = bin.tools.S_N_M(b, B) +d = bin.tools.S_N_D(a, B) -print("A × B = " , a) -print("A ÷ B = " , b) +print("A × B = ", a) +print("A ÷ B = ", b) print("A × B ÷ B = ", c) print("A ÷ B × B = ", d) -e = libs.P_C.S_N_M(A, B, C, D) -f = libs.P_C.S_N_M(A,libs.P_C.S_N_M(B,libs.P_C.S_N_M(C, D))) +e = bin.tools.S_N_M(A, B, C, D) +f = bin.tools.S_N_M(A, bin.tools.S_N_M(B, bin.tools.S_N_M(C, D))) -print("A * B * C * D = " , e) -print("A * B * C * D = " , f) - -G = libs.render_thread \ No newline at end of file +print("A * B * C * D = ", e) +print("A * B * C * D = ", f) diff --git a/test_mutiproser.py b/tests/test_mutiproser.py similarity index 100% rename from test_mutiproser.py rename to tests/test_mutiproser.py diff --git a/test_speed.py b/tests/test_speed.py similarity index 100% rename from test_speed.py rename to tests/test_speed.py diff --git a/test_threading.py b/tests/test_threading.py similarity index 100% rename from test_threading.py rename to tests/test_threading.py