import random dice=random.randint(1,6) while dice!=5: print(dice) dice=...
W3School的方式二選一(Object Oriented Style/Procedural Style)先完全照抄成功之後再慢慢修改成你要的樣子
參考來源 X = [ [1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0] ] Y = [ [2, 4, 6, 0], [1, 3,...
沒別的答案時可以試試 n=int(input()) print(str(n)+"="+str(n%1000//100))