林稊葦LIST清單DICT字典RANDOM模組

#註解林稊葦
import random
x=[i for i in range(10)]
print('產生清單',x)
y={}
for i in x:
	y[i]=random.random()
print(y)
for i in y:
	print(i,y[i])

留言

  1. 620.https://d11117312d.blogspot.com/2025/06/60.html
    W3school產生亂數。https://d11117312d.blogspot.com/2025/06/listdictrandom.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

林稊葦python運算CSV輸出TKINTER投資風險與報酬Markowitz

期貨業務員2025年考試power錄製螢幕