This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = 'http://dig.taichung.gov.tw/EASYGO/easygopage/todaylist.aspx?dist=00' | |
data = dict() | |
data['__EVENTTARGET'] = '' | |
data['__EVENTARGUMENT'] = '' | |
data['__LASTFOCUS'] = '' | |
data['__VIEWSTATE'] = 'unuUEEVtyVCTkLIoN7WtgTT5jYCYnvs1g/+FKS011phEtzDZ5BfVWhTtYmeth05ELoJ57AsRV4wuP1GeZ9VJgQLh+J9OH9btEsFd/zzTBjUSmPfgtiQIISOaj1H/xHzTzoC3KF+ZEGgq67kiU5HIgnhaCsGsVHCzouTtrwPg0sO/hHRbyMze79KYB/w5f/AnotwOCLP+GK4AZbHXYAv1KmYgdxk0tgJhfhORrEDu0H6fo/2UDKFrTHVD4emYCMb9DhYFVxrEOn4pHwBaluXkOQxE2KMCAKgq2oZcw1W/dDaf9vXRBoQsuMdostsUy/+80D4cAJ06Qr+CDmA/KWwdpjdeLTpFHwdJIVZw9zQphaTKylXXA1kkyEAa0TmH2zCLFl02tZrcnubobdu0gV0eZMllYWSDk9Y9DwGGXyhhSP/dZMmTKvB7sdw4a+LK9bkCfXHTbvN/mzUwIburht/CY09YC271mjT2yb+WmVVH1Y1QPRLCoPL4iijYbLmSvJTSOFCrw8jsSCvM/39z9IWyeNXKztcACwi+079ULB5ntR3AkDWQAxo/54HWiB8YpGDC4Uldt6vZ13+YJm/Hu1D0db54ACDVbfCZA5Fu828bJx9esj/qWJ7XcUJuYbKdGVdxtATNpzjzjRVjYpyv3efllYDwo9XP9RCKrXzfJWwCzO7215MlPmkmN22p2yMnmn7CKp4uuM3X81LLKaptvx0yH4ez1OeGSVNhhwkvmZ6Mba6Dd33ceFdGqGIGhVWrlWxUXIBVQF73owPeaWUPHkqPokbeNgGP4HmLnily7i360gI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.System.*; | |
public class Hello implements IHello { | |
@Override | |
public void output() { | |
out.println("Hello world"); | |
} | |
public static void main (String[] args) { | |
Hello hello = new Hello(); | |
hello.output(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import math | |
def prime(n): | |
if n <= 2: | |
return True | |
if n % 2 == 0: | |
return False | |
for i in range(3, int(math.sqrt(n)) + 1, 2): |