homework2 <<
Previous Next >> 2-2
2-1
設計一乙
import urllib.request
url = "https://nfulist.herokuapp.com/?semester=1091&courseno=0762"
cp1a = []
for line in urllib.request.urlopen(url):
cp1a.append(int(line.decode('utf-8').rstrip()))
print(cp1a)
print("總共有" + str(len(cp1a)) + " 筆")
total = len(cp1a)
for i in range(total):
print("http://github.com/" + str(cp1a[i]) + "/cp2020")
homework2 <<
Previous Next >> 2-2