refactor: refine Chinese descriptive text for temperature comparison analysis output.
This commit is contained in:
+4
-4
@@ -128,9 +128,9 @@ def start_bot():
|
|||||||
if range_match:
|
if range_match:
|
||||||
low, high = int(range_match.group(1)), int(range_match.group(2))
|
low, high = int(range_match.group(1)), int(range_match.group(2))
|
||||||
if pred_val < low:
|
if pred_val < low:
|
||||||
analysis = f"预测{pred_val}° < {low}° → 买NO ✓"
|
analysis = f"预测{pred_val}°低于{low}° → 买NO ✓"
|
||||||
elif pred_val > high:
|
elif pred_val > high:
|
||||||
analysis = f"预测{pred_val}° > {high}° → 买NO ✓"
|
analysis = f"预测{pred_val}°高于{high}° → 买NO ✓"
|
||||||
else:
|
else:
|
||||||
analysis = f"预测{pred_val}°在区间内 → 买YES ✓"
|
analysis = f"预测{pred_val}°在区间内 → 买YES ✓"
|
||||||
elif below_match:
|
elif below_match:
|
||||||
@@ -138,13 +138,13 @@ def start_bot():
|
|||||||
if pred_val <= threshold:
|
if pred_val <= threshold:
|
||||||
analysis = f"预测{pred_val}°≤{threshold}° → 买YES ✓"
|
analysis = f"预测{pred_val}°≤{threshold}° → 买YES ✓"
|
||||||
else:
|
else:
|
||||||
analysis = f"预测{pred_val}° > {threshold}° → 买NO ✓"
|
analysis = f"预测{pred_val}°高于{threshold}° → 买NO ✓"
|
||||||
elif higher_match:
|
elif higher_match:
|
||||||
threshold = int(higher_match.group(1))
|
threshold = int(higher_match.group(1))
|
||||||
if pred_val >= threshold:
|
if pred_val >= threshold:
|
||||||
analysis = f"预测{pred_val}°≥{threshold}° → 买YES ✓"
|
analysis = f"预测{pred_val}°≥{threshold}° → 买YES ✓"
|
||||||
else:
|
else:
|
||||||
analysis = f"预测{pred_val}° < {threshold}° → 买NO ✓"
|
analysis = f"预测{pred_val}°低于{threshold}° → 买NO ✓"
|
||||||
except:
|
except:
|
||||||
analysis = f"预测: {prediction}"
|
analysis = f"预测: {prediction}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user