← 返回事件
持续讨论AI发版

viable/strict/1788852547: Fix extract_scripts step-index zero-padding off-by-one (#187731)

发生了什么

extract_scripts.py numbers each extracted step with a 1-based index ( enumerate(steps, start=1) ), so the indices run 1..len(steps) . The zero-pad width, however, is computed from len(steps) - 1 : index_chars = len ( str ( len ( steps ) - 1 )) for i , step in enumerate ( steps , start = 1 ): ... filename = f" { i :0{ index_chars } } { sanitized } { extension } " When a job has exactly a power-of-ten number of steps…

摘要按规则整理自下方来源原文

为什么在扩散

来源