[print(f'韓信最少有{i}個士兵') for i in range(500, 1000) if i%3==2 and i%5==3 and i%7==2...
print("\n".join([f'韓信最少有{i}個士兵' for i in range(500, 1000) if i%3==2 an...
num_list = [f'韓信最少有{i}個士兵' for i in range(500, 1000) if i%3==2 and i%5==3 and i%...
for num in range(500, 1000): if num%3==2 and num%5==3 and num%7==2:...
用 map 大概會是這樣 const XO = (str) => { str = str.toUpperCase().split(''); let p...
我覺得這個範例用來解釋map有更合適的感覺 el.innerHTML += names.map((x) => { return `<li>${...