From bed01bad828fa92f984986463100b74d6437fe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Tue, 28 Sep 2021 16:32:38 +0800 Subject: [PATCH] some commit --- Difficult_Rocket/api/__init__.py | 7 ++++--- Difficult_Rocket/api/calculation.py | 2 +- Difficult_Rocket/api/scientific_unit.py | 25 +++++++++++++++++++------ 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Difficult_Rocket/api/__init__.py b/Difficult_Rocket/api/__init__.py index 09a05e8..aba3a01 100644 --- a/Difficult_Rocket/api/__init__.py +++ b/Difficult_Rocket/api/__init__.py @@ -11,11 +11,11 @@ github: @shenjackyuanjie gitee: @shenjackyuanjie """ -from .Exp import TexturesError, LanguageError -from .delivery import Delivery -from .new_thread import new_thread from .tools import config from .translate import Lang +from .delivery import Delivery +from .new_thread import new_thread +from .Exp import TexturesError, LanguageError __all__ = ['TexturesError', 'LanguageError', @@ -23,3 +23,4 @@ __all__ = ['TexturesError', 'Delivery', 'config', 'Lang'] + diff --git a/Difficult_Rocket/api/calculation.py b/Difficult_Rocket/api/calculation.py index d0ec061..d9dd1a5 100644 --- a/Difficult_Rocket/api/calculation.py +++ b/Difficult_Rocket/api/calculation.py @@ -17,7 +17,7 @@ import decimal from typing import List, Optional from decimal import Decimal -from Difficult_Rocket.api + # linear_algebra diff --git a/Difficult_Rocket/api/scientific_unit.py b/Difficult_Rocket/api/scientific_unit.py index 4582e0f..a0253a8 100644 --- a/Difficult_Rocket/api/scientific_unit.py +++ b/Difficult_Rocket/api/scientific_unit.py @@ -11,18 +11,31 @@ github: @shenjackyuanjie gitee: @shenjackyuanjie """ -__all__ = ['Newton', - 'Metre', - 'Second'] + +class Units: + """ + base class of all units + """ + def __init__(self): + pass -class Newton: +class _Newton(Units): pass -class Metre: +newton = _Newton() + + +class _Metre(Units): pass -class Second: +metre = _Metre() + + +class _Second(Units): pass + + +second = _Second()