修改: PriceSystem/ones_Sender.py

修改:     PriceSystem/sell_price/zhuge0118A.py
	修改:     PriceSystem/test.py
This commit is contained in:
罗干
2018-03-29 14:46:41 +08:00
parent 94cd89b360
commit fd10b0ea02
4 changed files with 31 additions and 11 deletions
+1
View File
@@ -53,6 +53,7 @@ if __name__ == "__main__":
if os.path.exists(lock_file):
os.remove(lock_file)
pro_num = config.get_worker_num()
#pro_num = 1
pool = multiprocessing.Pool(processes=pro_num)
for pid in range(0, pro_num):
pool.apply_async(worker, ())
+15
View File
@@ -41,5 +41,20 @@ def get_weekend(tt):
if __name__ == "__main__":
weekend = ""
#send_cmd({"city": "西安", "region": "雁塔", "name": "鸿景花园", "weekend": get_weekend('20180325')})
send_cmd({"city": "西安", "region": "雁塔", "name": "鸿景花园", "weekend": get_weekend('20180325')})
#sys.exit(0)
+3 -1
View File
@@ -1127,7 +1127,7 @@ def commonprice(ct, rl, p):
#print('ddd11',ddd11)
#print('junjia_ganji=',junjia1,'$'*100)
cc = group(junjia_front, junjia1, 1)
cc = group(junjia_front, junjia1, 1,16)
# junjia_km=k_means(junjia)
# print('cc=',cc)
############
@@ -1304,6 +1304,8 @@ def last_sunday(weekend):
# last_sunday=last_sunday(weekend)
def make_up_price(ct, rl, lk, weekend):
print('lg=',ct,rl,lk)
# last_sunday=last_sunday(weekend)
# save_lg=client136.fangjia.district_stat
if lk != None:
+12 -10
View File
@@ -33,20 +33,21 @@ ct = '广州'
rl = '海珠'
lk = '会展世界城三期'
'''
#成都- 都江堰- 溪岭雪#上海徐汇 灞桥沁水新城百汇园西 安 未央 兴乐园 弘和美邻馆 雁塔鸿景花园
ct='西安'
rl='雁塔'
lk='鸿景花园'
#成都双流长滩一号 上海 奉贤 朝阳新村##
#成都- 都江堰- 溪岭雪#上海徐汇 灞桥沁水新城百汇园西 安 未央 兴乐园 弘和美邻馆 雁塔鸿景花园上海 奉贤 万隆花苑
ct='上海'
rl='奉贤'
lk='棕榈滩别墅'
#成都双流长滩一号 上海 奉贤 朝阳新村##上海 奉贤 棕榈滩别墅
#未央
#weekend = datetime.datetime.strptime("2018-03-11", "%Y-%m-%d")
weekend = datetime.datetime.strptime("2018-03-25", "%Y-%m-%d")
#for i in range(0, 100):
# sellPrice.out_put_price(ct, rl, lk, fangjia.get_weekend())
# e = time.time()
# print(e - s)
e = time.time()
sellPrice.out_put_price(ct, rl, lk, fangjia.get_weekend())
print(e - s)
'''
###
import pandas as pd
@@ -60,7 +61,7 @@ for i in a.index:
sellPrice.out_put_price(ct, rl, lk, weekend)
'''
'''
@fangjia.cache(1000)
def sum1(a, b):
@@ -69,3 +70,4 @@ def sum1(a, b):
print(sum1(1,2))
'''