我想要製作一個隨機抽籤的程式 在隨機抽完籤後我想讓他能夠爭測出抽籤到的文字並秀出對應的圖片但我不知道其中的模塊該如何組裝
have you tried ths block?
1 Like
你好 現在我的程式能夠隨機選取出東西 但是沒有辦法找出對應文字的圖片
Pls show us your block.
I hope you should use
Select list item from the text list
Index{ index is in the list thing (the random item from the global image list)
list (the global image list )}
他目前長這樣 但只能夠隨機抽出東西沒辦法出現圖片
You need a dictionary, the food name as key, the picture name/path as value.
After you pick a random item from the list, then look up in the dictionary.
this can not used seperately, it make no sense. It has to be in a dictionary.
1 Like
你好 請問我該如何修正我的字典
食品名 只能是单个食品 不能是整个列表
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.