... 而Python的random()函數便是用於實現這個功能。 python, random, ... from a list rand_city = random.choice(cities) print(rand_city) # random ...
確定! 回上一頁