Created
September 14, 2015 15:56
-
-
Save rokj/e074c95742c8ffbda687 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
__author__ = 'rokj' | |
ime = "" | |
priimek = "" | |
naslov = "" | |
def vnos_podatkov(): | |
global ime, priimek, naslov | |
lokalna_spremenljivka = 'kr neki' | |
ime = raw_input("Vnesi ime\n") | |
priimek = raw_input("Vnesi priimek\n") | |
naslov = raw_input("Vnesi naslov\n") | |
print lokalna_spremenljivka | |
def izpisi_podatke(ime="Marija", priimek="Cankar", naslov="Tretji naslov"): | |
print "%s %s: %s" % (ime, priimek, naslov) | |
vnos_podatkov() | |
izpisi_podatke("Iztok", "Mocivnik", "En naslov") | |
vnos_podatkov() | |
izpisi_podatke(ime, priimek, naslov) | |
izpisi_podatke() | |
rtvslo.si/sport/kosarka/ | |
katregorija = dobi_kategegorij() | |
podkategorija = ... | |
vse_novice = dobi_vse_novice(kategorija, podkaterijo) | |
html = '<html><head>cssji</head><body>' | |
for novica in vse_novice.items(): | |
html = html + "%s" % (novica) | |
# '<html><head>cssji</head><body>' + novica | |
# '<html><head>cssji</head><body>' + novice + novica | |
html = html + '</body></html>' | |
poslji_odgovor("<html><head></head><body>%s</body></html>" %s (html)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment