<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>大樂透程式開發流程 by 10831陳彥綸</title>
      <link>https://padlet.com/s11030152/8zgiob94vvvlykzp</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-03-30 00:28:39 UTC</pubDate>
      <lastBuildDate>2026-01-04 21:47:17 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537478916</link>
         <description><![CDATA[<div>import random<br>for i in range(6):<br>&nbsp;i=(random.randrange(2,100,2))<br>&nbsp;print(i)</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:29:14 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537478916</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537480145</link>
         <description><![CDATA[<div>利用python內建函式來寫</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:30:09 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537480145</guid>
      </item>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537481614</link>
         <description><![CDATA[<div>import random <br>result=[]<br>for i in range(6):<br>&nbsp;result.append(random.randrange(1, 49))<br>print("產生的亂數",result)<br><br><mark>#氣泡排序法<br>for i in range(len(result)): <br>&nbsp; &nbsp; for j in range(len(result)-1):<br>&nbsp; &nbsp; &nbsp; &nbsp; if result[j] &gt; result[j+1]:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #交換數字<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = result[j]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j] = result [j+1]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j+1] = temp<br>print("排序後的結果", result)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </mark><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:31:16 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537481614</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537482117</link>
         <description><![CDATA[<div>利用氣泡排序法來進行排序<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:31:41 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537482117</guid>
      </item>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537483309</link>
         <description><![CDATA[<div>import random<br>result = []&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp;# 建立空串列<br><mark>while len(result)&lt;6:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br># 使用 while 迴圈，直到串列的長度等於 6 就停止<br>&nbsp; &nbsp; b = random.randint(1, 49)&nbsp; &nbsp; <br># 取出 1～49 得隨機整數<br>&nbsp; &nbsp; if b not in result:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp;# 判斷如果 a 裡面沒有 b<br>&nbsp; &nbsp; &nbsp; &nbsp; result.append(b)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;# 將 b 放入 a<br>print("未排序的結果", result)</mark><br>#氣泡排序法<br>for i in range(len(result)):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; for j in range(len(result)-1):<br>&nbsp; &nbsp; &nbsp; &nbsp; if result[j] &gt; result[j+1]:<br> #交換數字<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = result[j]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j] = result [j+1]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j+1] = temp<br>print("排序後的結果", result)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:32:32 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537483309</guid>
      </item>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537487409</link>
         <description><![CDATA[<div>import random<br><mark>n = int(input("請輸入需要抽取幾次："))<br>for k in range(n):<br>&nbsp; &nbsp; result = [] &nbsp; # 建立空串列</mark><br>&nbsp; &nbsp; while len(result)&lt;6:&nbsp;<br>&nbsp; # 使用 while 迴圈，直到串列的長度等於 6 就停止<br>&nbsp; &nbsp; &nbsp; &nbsp; b = random.randint(1, 49)&nbsp; &nbsp;<br># 取出 1～49 得隨機整數<br>&nbsp; &nbsp; &nbsp; &nbsp; if b not in result: &nbsp;<br> # 判斷如果 a 裡面沒有 b<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.append(b) &nbsp;<br> # 將 b 放入 a<br>&nbsp; &nbsp; # 氣泡排序法<br>&nbsp; &nbsp; for i in range(len(result)):<br>&nbsp; &nbsp; &nbsp; &nbsp; for j in range(len(result)-1):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if result[j] &gt; result[j+1]:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 交換數字<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = result[j]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j] = result [j+1]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result [j+1] = temp<br>&nbsp; &nbsp; print(f"第{k+1}次的結果：", result)</div><div><br><br><br><br></div><div><br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:35:29 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537487409</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537488980</link>
         <description><![CDATA[<div>利用While迴圈來判斷有沒有重複 有重複就不能加進去</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:36:34 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537488980</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537492088</link>
         <description><![CDATA[<div>在主程式使用for迴圈 來進行所需要的次數</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:38:46 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537492088</guid>
      </item>
      <item>
         <title>螢光筆</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537512893</link>
         <description><![CDATA[<div>螢光筆與上面契合</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:54:40 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537512893</guid>
      </item>
      <item>
         <title>發現</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537516194</link>
         <description><![CDATA[<div>去深入了解取亂數後發現 取亂數是有一個規律的 大多是以時間</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 00:57:18 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2537516194</guid>
      </item>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2569485389</link>
         <description><![CDATA[<div>import random<br># 產生前十期的號碼<br>all_nums = []<br>for i in range(1, 11):<br>&nbsp; &nbsp; nums = []<br>&nbsp; &nbsp; while len(nums) &lt; 6:<br>&nbsp; &nbsp; &nbsp; &nbsp; num = random.randint(1, 49)<br>&nbsp; &nbsp; &nbsp; &nbsp; if num not in nums:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nums.append(num)<br>&nbsp; &nbsp; nums.sort()<br>&nbsp; &nbsp; all_nums.append((i, nums))<br><br># 輸出前十期號碼<br><mark>for i in range(10):<br>&nbsp; &nbsp; print(f"第{all_nums[i][0]}期號碼：{all_nums[i][1][0]:02d}. {all_nums[i][1][1]:02d}. {all_nums[i][1][2]:02d}. {all_nums[i][1][3]:02d}. {all_nums[i][1][4]:02d}. {all_nums[i][1][5]:02d}")<br><br># 輸入需要查詢的期數<br>period = int(input("請輸入需要查詢的期數："))</mark><br><br># 輸出該期的中獎號碼和特別號<br><mark>if period &gt; 0 and period &lt;= 10:<br>&nbsp; &nbsp; result = all_nums[period-1][1]<br>&nbsp; &nbsp; special_num = random.randint(1, 49)<br>&nbsp; &nbsp; print(f"第{period}期中獎號碼：{result[0]:02d}. {result[1]:02d}. {result[2]:02d}. {result[3]:02d}. {result[4]:02d}. {result[5]:02d} / 特別號：{special_num:02d}")<br>else:<br>&nbsp; &nbsp; print("輸入錯誤，請輸入 1 到 10 之間的正整數。")</mark></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-04-27 00:14:32 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2569485389</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2569487367</link>
         <description><![CDATA[<div>用IF ELSE 函數來查詢其別</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-04-27 00:16:23 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2569487367</guid>
      </item>
      <item>
         <title>說明</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2577440460</link>
         <description><![CDATA[<div><strong>已完成十期抽獎，使用者可選擇期別/號碼，查詢有沒有中獎，再詢問是否要繼續查詢（Ｙ(繼續)/Ｎ(結束)）</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-05-04 00:23:42 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2577440460</guid>
      </item>
      <item>
         <title>程式碼</title>
         <author>s11030152</author>
         <link>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2577441016</link>
         <description><![CDATA[<div>import random<br><br># 1. 產生十期號碼和特別號<br>nums_list = []<br>for i in range(10):<br>&nbsp; &nbsp; nums = []<br>&nbsp; &nbsp; while len(nums) &lt; 6:<br>&nbsp; &nbsp; &nbsp; &nbsp; num = random.randint(1, 49)<br>&nbsp; &nbsp; &nbsp; &nbsp; if num not in nums:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nums.append(num)<br>&nbsp; &nbsp; nums.sort()<br>&nbsp; &nbsp; special_num = random.randint(1, 49)<br>&nbsp; &nbsp; while special_num in nums:<br>&nbsp; &nbsp; &nbsp; &nbsp; special_num = random.randint(1, 49)<br>&nbsp; &nbsp; nums.append(special_num)<br>&nbsp; &nbsp; nums_list.append(nums)<br><br># 2. 輸出十期號碼<br>for i, nums in enumerate(nums_list):<br>&nbsp; &nbsp; print(f"第{i+1}期號碼：{' '.join([str(num).zfill(2) for num in nums[:6]])} 特別號：{str(nums[-1]).zfill(2)}")<br><br># 3. 對獎<br><mark>while True:<br>&nbsp; &nbsp; period = input("請輸入查詢的期別（1-10）或輸入 q 離開：")<br>&nbsp; &nbsp; if period == 'q':<br>&nbsp; &nbsp; &nbsp; &nbsp; break<br>&nbsp; &nbsp; elif period.isdigit() and 1 &lt;= int(period) &lt;= 10:<br>&nbsp; &nbsp; &nbsp; &nbsp; num_str = input("請輸入對獎的號碼（以空格分隔）：")<br>&nbsp; &nbsp; &nbsp; &nbsp; nums = [int(num) for num in num_str.split()]<br><br>&nbsp; &nbsp; &nbsp; &nbsp; result = nums_list[int(period) - 1]<br><br>&nbsp; &nbsp; &nbsp; &nbsp; if set(nums) &amp; set(result[:6]):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(f"第{period}期中獎！")<br>&nbsp; &nbsp; &nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(f"第{period}期未中獎。")<br><br>&nbsp; &nbsp; &nbsp; &nbsp; continue_query = input("是否繼續查詢（Y/N）：")<br>&nbsp; &nbsp; &nbsp; &nbsp; if continue_query.upper() != 'Y':<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br>&nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; print("請輸入有效的期別（1-10）或輸入 q 離開。")<br></mark><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-05-04 00:24:07 UTC</pubDate>
         <guid>https://padlet.com/s11030152/8zgiob94vvvlykzp/wish/2577441016</guid>
      </item>
   </channel>
</rss>
