40923232 cp2020

  • Home
    • Site Map
    • reveal
    • blog
  • 首頁
  • HW1
    • PCH9 Network Overview(網路總覽)
      • Network Defined by Geography(地理定義的網路)
      • Network Defined by Relationships(關係定義的網路)
      • Network Defined by Topology(結構定義的網路)
    • PCH10 Network Hardware(網路硬體)
      • Network Devices(網路裝置)
      • Install a Network Adapter(安裝網路適配器)
  • HW2
    • HW2-1 取得四設一甲分組數列
    • HW2-2 查看加退選
    • HW2-3 取得W3網頁html
  • HW3
    • 22. Read From File(讀取檔案)
    • 23. File Overlap(檔案交疊)
    • 29. Tic Tac Toe Game
  • Get Rickroll
  • 心得
HW2-2 查看加退選 << Previous Next >> HW3

HW2-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")
for num in cp1a:
site(num)



取得其結果


HW2-2 查看加退選 << Previous Next >> HW3

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