陳瑀晞LIST清單DICT字典RANDOM模組

#註解陳瑀晞\學過python
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. https://chen-yu-hsi.blogspot.com/2025/06/pythoncsvtkintermarkowitz.html
    https://chen-yu-hsi.blogspot.com/2025/05/csv.html
    https://chen-yu-hsi.blogspot.com/2025/06/blog-post.html
    https://chen-yu-hsi.blogspot.com/2025/06/listdictrandom.html
    蒙地卡羅。https://chen-yu-hsi.blogspot.com/2025/03/202537d11117311.html
    321開始繳交作業。https://chen-yu-hsi.blogspot.com/2025/06/pythoncsvtkintermarkowitz.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

產業分析作業

陳瑀晞python運算CSV輸出TKINTER投資風險與報酬Markowitz

馬可維茲風險平均數平面