Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Mike_M=c3=bcller?= Newsgroups: de.comp.lang.python Subject: Re: [Python-de] strings zusammensetzen. Date: Fri, 25 Aug 2017 08:00:16 +0200 Organization: Python Academy GmbH & Co. KG Lines: 18 Message-ID: References: <5694acc5-2e62-6c43-2512-5474783103b6@python-academy.de> Reply-To: mmueller@python-academy.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de VgQfBtXP3DUZ8nglMQCWOwBZjDJZP1ZocUWO6YkAJQZw== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: Content-Language: de-DE X-Authenticated-Sender: mmueller@python-academy.de X-Virus-Scanned: Clear (ClamAV 0.99.2/23709/Fri Aug 25 06:39:26 2017) X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <5694acc5-2e62-6c43-2512-5474783103b6@python-academy.de> X-Mailman-Original-References: Xref: csiph.com de.comp.lang.python:4861 Am 25.08.17 um 07:45 schrieb Hermann Riemann: > Was ist besser? > a b und c enthalten strings. > > d=a+b+c besser als > d="{}{}{}".format(a,b,c) ? Vielleicht etwas mehr "pythonic" wäre: d = ''.join([a, b, c]) Mike > > Hermann >    der hier nicht an Lesbarkeit denkt. >