python Copy import random x = random.randint(0,10) print(x). 輸出: textCopy 8. 要使用此函式生成一個隨機數列表,我們可以將列表推導方法與 for ...
確定! 回上一頁