37 lines
1.7 KiB
Python
37 lines
1.7 KiB
Python
import json
|
|
import math
|
|
|
|
anzahl = dict()
|
|
anzahl["et200_sp_ea_ebene"] = 1
|
|
anzahl["schaltschrank"] = 1
|
|
# a = 5 * math.ceil((anzahl.get("et200_sp_ea_ebene", 0) * anzahl.get("schaltschrank", 0) * 4 ))
|
|
a = (math.ceil((anzahl.get("et200_sp_ea_ebene", 0) * \
|
|
anzahl.get("schaltschrank", 0) * 4 + \
|
|
anzahl.get("unterverteiler_fuer_1neuenhauser_pm", 0) * 6 + \
|
|
anzahl.get("unterverteiler_fuer_1flyer", 0) * 4 + \
|
|
anzahl.get("unterverteiler_fuer_2flyer", 0) * 6 + \
|
|
anzahl.get("unterverteiler_fuer_1flyer_f40_mit_integrierter_putzmaschine", 0) * 5 + \
|
|
anzahl.get("unterverteiler_fuer_2flyer_f40_mit_integrierter_putzmaschine", 0) * 5 + \
|
|
anzahl.get("unterverteiler_fuer_puffer", 0) * 7 + \
|
|
anzahl.get("unterverteiler_fuer_5_rsm_fa", 0) * 4 + \
|
|
anzahl.get("unterverteiler_fuer_10_rsm_fa", 0) * 6 + \
|
|
anzahl.get("unterverteiler_fuer_3_rsm_fa_mit_umfahrung_steckbar", 0) * 9 / 1.5)) + \
|
|
anzahl.get("korrektur_et200_sp_eingangskarte_8_do", 0))
|
|
|
|
|
|
|
|
# details = {'Name': "Bob",
|
|
# 'Age' :28}
|
|
|
|
# with open('convert.txt', 'w') as convert_file:
|
|
# convert_file.write(json.dumps(details))
|
|
|
|
# https://www.geeksforgeeks.org/write-a-dictionary-to-a-file-in-python/
|
|
# Michael Stangl13:56
|
|
# cat a.txt | sort > a_neu.txt
|
|
|
|
|
|
|
|
# Fragen:
|
|
# EAs Bedienstation automatische umfahrung in excel
|