摇摆决定神器 周五下班想吃火锅但又要减肥,那到底吃不吃呢?来吧,程序来决定: import random def x_x(steps): x = sum(random.choice([-1, 1]) for _ in range(steps)) return "吃" if x > 0 else "不吃" for _ in range(5): print(x_x(999999))