python模拟开店虚拟顾客流水程序
import random import time npc = "顾客" while True: print(npc + "购买了商品" + "收入加" + str(random.randint(1, 100)) + "元") time.sleep(1)
import random import time npc = "顾客" while True: print(npc + "购买了商品" + "收入加" + str(random.randint(1, 100)) + "元") time.sleep(1)