关于「实践与证伪方案:场馆主事者清单、蒸馏件与预注册检验」,《摄影场馆的装箱、退改与折旧》给出的定量结论是什么?
结论:第八章给出按日、周、月、季执行的主事者清单,说明以三联报价试算器为核心、附配色令牌与宣传文案检查器的蒸馏件,并给出预注册检验方案。书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。
数据口径:书中参数为示意;全部计算由书中程序生成;本书不是个人化的税务、法律或投资建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库
| mode | token | colour | on | contrast | >= 4.5 |
| light | refund-high | #1E6B47 | #FFFFFF | 6.46 | ok |
| light | refund-mid | #7A5200 | #FFFFFF | 6.92 | ok |
| light | refund-low | #A12A1E | #FFFFFF | 7.33 | ok |
| light | text-body | #1B1B1B | #FFFFFF | 17.22 | ok |
| dark | refund-high | #7FD3A9 | #141414 | 10.35 | ok |
| dark | refund-mid | #F0B54A | #141414 | 10.01 | ok |
| dark | refund-low | #FF8F84 | #141414 | 8.35 | ok |
| dark | text-body | #EDEDED | #141414 | 15.74 | ok |
| lowest contrast 6.46 |
查看完整验算程序
# Chapter 8. p83: colour tokens for the refund-ladder table, checked.
# The ladder is shown as a table whose rows are tinted by how much of
# the price comes back. Each text colour is checked against its
# background with the WCAG 2 contrast ratio (L1 + 0.05) / (L2 + 0.05),
# where L is relative luminance of sRGB. Target 4.5 for body text.
# Token values are proposals for a style library, not a brand.
import math
TOKENS = [
("light", "#FFFFFF", "refund-high", "#1E6B47"),
("light", "#FFFFFF", "refund-mid", "#7A5200"),
("light", "#FFFFFF", "refund-low", "#A12A1E"),
("light", "#FFFFFF", "text-body", "#1B1B1B"),
("dark", "#141414", "refund-high", "#7FD3A9"),
("dark", "#141414", "refund-mid", "#F0B54A"),
("dark", "#141414", "refund-low", "#FF8F84"),
("dark", "#141414", "text-body", "#EDEDED"),
]
def lum(hexc):
out = []
for i in (1, 3, 5):
c = int(hexc[i:i + 2], 16) / 255
out.append(c / 12.92 if c <= 0.04045 else
((c + 0.055) / 1.055) ** 2.4)
return math.fsum([0.2126 * out[0], 0.7152 * out[1], 0.0722 * out[2]])
def ratio(a, b):
la, lb = lum(a), lum(b)
hi, lo = max(la, lb), min(la, lb)
return (hi + 0.05) / (lo + 0.05)
print("mode token colour on contrast >= 4.5")
worst = None
for mode, bg, name, fg in TOKENS:
r = ratio(fg, bg)
worst = r if worst is None else min(worst, r)
print("{:5s} {:12s} {} {} {:8.2f} {}".format(
mode, name, fg, bg, r, "ok" if r >= 4.5 else "FAIL"))
print("lowest contrast {:.2f}".format(worst))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《多规格实景空间时段一维装箱、动态退改期权阶梯与高损耗器材加速折旧运筹》第 8 章「实践与证伪方案:场馆主事者清单、蒸馏件与预注册检验」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-173 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026173,
author = {Fan, Yafu},
title = {One-Dimensional Time-Slot Packing for Multi-Format Studio Sets, Dynamic Cancellation-Option Ladders and Accelerated Depreciation of High-Wear Equipment},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}