diff --git a/apps/riic_report_analysis.py b/apps/riic_report_analysis.py index 61fca51..029bb75 100644 --- a/apps/riic_report_analysis.py +++ b/apps/riic_report_analysis.py @@ -149,8 +149,17 @@ class RIICReportAnalysis: total_by_order = lmb_avg + balanced_exp_by_order output += "====计算结果====\n\n" - output += f"订单平均:{lmb_avg:.0f}\n\n" - output += "-----效率算法-----\n" + output += f"订单平均:{lmb_avg:.0f}\n" + if power_plants == 3: + output += f"赤金平均:{gold_avg:.0f}\n" + output += f"经验平均:{exp_avg:.0f}\n" + if exp_avg != 0: + output += f"产出钱书比例:{lmb_avg / exp_avg:.2f}\n" + else: + output += f"产出钱书比例:正无穷\n" + output += f"综合钱书比例:{(lmb_avg + external_lmb) / (exp_avg + external_exp):.2f}\n" + output += f"钱书总和:{lmb_avg + exp_avg:.0f}\n" + output += "\n-----效率算法-----\n" output += f"贸易效率:{trading_efficiency * 100:.0f}%\n" output += f"等效赤金:{gold_by_e:.0f}\n" output += f"经验调平:{balanced_exp_by_e:.0f}\n" @@ -163,8 +172,6 @@ class RIICReportAnalysis: if power_plants == 2: output += f"钱书比例:{lmb_exp_ratio_by_order:.2f}\n" output += f"调平总和:{total_by_order:.0f}\n\n" - if power_plants == 3: - output += f"钱书比例:{(lmb_avg + external_lmb) / (exp_avg + external_exp):.2f}" else: balanced_gold = lmb_avg - external_gold overflow_gold = gold_avg - balanced_gold