40923250 cp2020

  • Home
    • Site Map
    • reveal
    • blog
  • First
  • Hw1
    • PCH18
      • Laptop and Notebook Component Replacement
      • Troubleshooting Hard Drives
    • PCH19
      • Overview
      • AC Power
      • Proper Disposal Procedures
      • Security
  • HW2
    • 2-1 取得一甲分組數列
    • 2-2 是否有人加退選
    • 2-3 產生W3網頁html
  • Hw3
    • 14.移除重複項
    • 15.倒序
    • 16.密碼生成器
  • 學習日記
    • git clone
    • 刪除submodule
    • ORError
    • ssh keygen
  • python
    • Variables 變數
2-2 是否有人加退選 << Previous Next >> Hw3

2-3 產生W3網頁html

#繼2-1
import urllib.request
url = "https://nfulist.herokuapp.com/?semester=1091&courseno=0776"
cp1a = []
for line in urllib.request.urlopen(url):
    cp1a.append(int(line.decode('utf-8').rstrip()))
print(cp1a)
print("共" + str(len(cp1a)) + "筆")
#帶入陳述句
def site(num):
    print("https://github.com/" + str(num) + "/cp2020")
#將cp1a的數帶入陳述句
for num in cp1a:
    site(num)




2-2 是否有人加退選 << Previous Next >> Hw3

Copyright © All rights reserved | This template is made with by Colorlib