python模拟开店虚拟顾客流水程序

import random
import time
npc = "顾客"
while True:
    print(npc + "购买了商品" + "收入加" + str(random.randint(1, 100)) + "")
    time.sleep(1)

 

posted on 2026-07-28 10:10  小沙盒工作室  阅读(2)  评论(0)    收藏  举报