-
-
Save lhk/4196834 to your computer and use it in GitHub Desktop.
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 urllib.request | |
def getSolutionFor(i): | |
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i)) | |
s = str(f.read()) | |
return s.split('\'')[1] | |
def saveSolutionsToFile(lowerBound, upperBound, fileName): | |
pass | |
while True: | |
#x = int ( input("1 <= x <= 65535 ?:") ) | |
#print("Wert an Stelle x="+str(x) + ": " + getSolutionFor(x)) | |
# Einleseschleife | |
lowerBound = -1 | |
upperBound = -1 | |
while True: | |
lowerBound = int(input("von :?")) | |
upperBound = int(input("bis :?")) | |
if not(upperBound < lowerBound or upperBound >= 65535 or lowerBound <= 0): | |
break; | |
for i in range (lowerBound, upperBound): | |
print(getSolutionFor(i)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment