瀏覽代碼

roi: header, bold

raylu 1 周之前
父節點
當前提交
ac1ff9723f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      roi.py

+ 3 - 1
roi.py

@@ -20,8 +20,10 @@ def main() -> None:
 		if profit := calc_profit(recipe, buildings, materials, prices):
 		if profit := calc_profit(recipe, buildings, materials, prices):
 			profits.append(profit)
 			profits.append(profit)
 	profits.sort(reverse=True)
 	profits.sort(reverse=True)
+	print('\033[1mwrought    \033[0;32mdaily profit/area\033[31m')
+	print('\033[30mrecipe                         \033[0mexpertise            \033[33mcapex  \033[35mdaily opex\033[0m')
 	for p in profits:
 	for p in profits:
-		print(f'{p.output:5} \033[32m{p.profit_per_area: 10,.0f}\033[31m', end='')
+		print(f'\033[1m{p.output:5} \033[0;32m{p.profit_per_area: 10,.0f}\033[31m', end='')
 		if p.low_volume:
 		if p.low_volume:
 			print(' low volume', end='')
 			print(' low volume', end='')
 		if p.heavy_logistics:
 		if p.heavy_logistics: