如何從我的max
變量中減去1000
,所以我在每次循環時遞減 值?在一個while循環中減法
while 1:
max = 160000
players = []
players.append(Player(202556,32000))
randomPlayer = random.choice(players)
time.sleep(random.randint(1,4))
items = fut.searchAuctions('player',assetId=randomPlayer.assetId,
max_buy=randomPlayer.maxBid,max_price=max)
max-1000
print max
你應該循環之前指定「最大」和減少其內這樣的循環:「最大 - = 1000」 –
不知道什麼是沒有道理downvotes。爲什麼不能提出基本的問題! – DexTer
@DexTer因爲這些問題可以通過谷歌搜索。老實說,這個問題甚至沒有編程相關。它與邏輯有關。常識幾乎。 –