1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #-*- coding: utf-8 -*- def buildConnectionString(params): u"""Tworzy łańcuch znaków na podstawie słownika parametrów. Zwraca łańcuch znaków. """ return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) if __name__ == "__main__": myParams = {"server":"mpilgrim", \ "database":"master", \ "uid":"sa", \ "pwd":"secret" } print buildConnectionString(myParams) m477@m477-laptop:~$ python ~/Pulpit/hello.py File "/home/m477/Pulpit/hello.py", line 5 """ ^ IndentationError: expected an indented block |