some commit about v0.5.2
release.ing
This commit is contained in:
parent
a35fdcd74d
commit
150a1c6179
@ -1,4 +1,4 @@
|
||||
"""
|
||||
"""
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
@ -27,7 +27,7 @@ if __name__ == '__main__':
|
||||
# 输出一遍大部分文件位置相关信息 以后可能会加到logs里
|
||||
os.chdir(sys.path[0])
|
||||
sys.path.append('./Difficult_Rocket')
|
||||
sys.path.append('./libs')
|
||||
sys.path.append('/libs')
|
||||
print(sys.path)
|
||||
print(hi)
|
||||
|
||||
|
@ -221,7 +221,7 @@ Physics calculation
|
||||
|
||||
|
||||
def is_decimal(A: any) -> bool:
|
||||
if type(A) is not type(decimal.Decimal):
|
||||
if isinstance(A, decimal):
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
@ -334,7 +334,7 @@ def G_C(M, m, R, G): # stand for gravity calculation
|
||||
return g
|
||||
|
||||
|
||||
def distance(A, B):
|
||||
def distance(A: List[float, float], B: List[float, float]):
|
||||
"""
|
||||
formats:
|
||||
A & B format: docs.basic_config:basic_poi
|
||||
@ -352,3 +352,5 @@ def distance(A, B):
|
||||
poi_dis.append(poi_dis[0] + poi_dis[1])
|
||||
poi_dis[2] **= 0.5
|
||||
return poi_dis[2]
|
||||
|
||||
def
|
||||
|
@ -1,4 +1,4 @@
|
||||
# -------------------------------
|
||||
# -------------------------------
|
||||
# Difficult Rocket
|
||||
# Copyright © 2021 by shenjackyuanjie
|
||||
# All rights reserved
|
||||
@ -19,7 +19,7 @@ if __name__ == '__main__': # been start will not run this
|
||||
sys.path.append('/bin/libs')
|
||||
sys.path.append('/bin')
|
||||
|
||||
from api import tools
|
||||
from Difficult_Rocket.api import tools
|
||||
from api.delivery import Delivery
|
||||
from api.new_thread import new_thread
|
||||
|
||||
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
'server': {
|
||||
'level': 'DEBUG',
|
||||
// option: CRITICAL ERROR WARNING INFO DEBUG
|
||||
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
||||
// format of log
|
||||
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
||||
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
||||
},
|
||||
'client': {
|
||||
'level': 'DEBUG',
|
||||
// option: CRITICAL ERROR WARNING INFO DEBUG
|
||||
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
||||
// format of log
|
||||
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
||||
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
||||
},
|
||||
'file': {
|
||||
'level': 'DEBUG',
|
||||
// option: CRITICAL ERROR WARNING INFO DEBUG
|
||||
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
||||
// format of log
|
||||
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
||||
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
||||
'filename': {
|
||||
'main': '{date} DR.log',
|
||||
// {date} -> date
|
||||
'formats': {
|
||||
'date': '%Y-%m-%d %H-%M-%S'
|
||||
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
||||
// can and more {xx} by adding more obj EZ
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user