<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://kb.son-schiet.de/index.php?action=history&amp;feed=atom&amp;title=M%C3%B6glichkeiten_formatierter_Ausgabe</id>
	<title>Möglichkeiten formatierter Ausgabe - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://kb.son-schiet.de/index.php?action=history&amp;feed=atom&amp;title=M%C3%B6glichkeiten_formatierter_Ausgabe"/>
	<link rel="alternate" type="text/html" href="https://kb.son-schiet.de/index.php?title=M%C3%B6glichkeiten_formatierter_Ausgabe&amp;action=history"/>
	<updated>2026-07-02T09:20:47Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Meine persönliche Wissensdatenbank</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://kb.son-schiet.de/index.php?title=M%C3%B6glichkeiten_formatierter_Ausgabe&amp;diff=161&amp;oldid=prev</id>
		<title>Martin: Die Seite wurde neu angelegt: „Es gibt mehrere Möglichkeiten:  # klassisch # mit Maske # Methodenaufruf  ===Klassische Formatierung=== &lt;syntaxhighlight lang=&quot;python&quot;&gt; var1=&#039;Welt&quot; print(f&quot;Hallo {var1}!&quot;) &lt;/syntaxhighlight&gt;  Ergibt: Hallo Welt!  ===Formatierung mit Maske=== &lt;syntaxhighlight lang=&quot;python&quot;&gt; var1=&#039;Welt&quot; var2=&quot;Wetter&quot; maske=&quot;Hallo {} mit schönem {}!&quot; print(maske.format(var1, var2) &lt;/syntaxhighlight&gt;  Ergibt: Hallo Welt mit schönem Wetter!  ===Methodenaufruf=== &lt;syntaxhigh…“</title>
		<link rel="alternate" type="text/html" href="https://kb.son-schiet.de/index.php?title=M%C3%B6glichkeiten_formatierter_Ausgabe&amp;diff=161&amp;oldid=prev"/>
		<updated>2026-05-09T04:51:35Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Es gibt mehrere Möglichkeiten:  # klassisch # mit Maske # Methodenaufruf  ===Klassische Formatierung=== &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt; var1=&amp;#039;Welt&amp;quot; print(f&amp;quot;Hallo {var1}!&amp;quot;) &amp;lt;/syntaxhighlight&amp;gt;  Ergibt: Hallo Welt!  ===Formatierung mit Maske=== &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt; var1=&amp;#039;Welt&amp;quot; var2=&amp;quot;Wetter&amp;quot; maske=&amp;quot;Hallo {} mit schönem {}!&amp;quot; print(maske.format(var1, var2) &amp;lt;/syntaxhighlight&amp;gt;  Ergibt: Hallo Welt mit schönem Wetter!  ===Methodenaufruf=== &amp;lt;syntaxhigh…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Es gibt mehrere Möglichkeiten:&lt;br /&gt;
&lt;br /&gt;
# klassisch&lt;br /&gt;
# mit Maske&lt;br /&gt;
# Methodenaufruf&lt;br /&gt;
&lt;br /&gt;
===Klassische Formatierung===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
var1=&amp;#039;Welt&amp;quot;&lt;br /&gt;
print(f&amp;quot;Hallo {var1}!&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ergibt: Hallo Welt!&lt;br /&gt;
&lt;br /&gt;
===Formatierung mit Maske===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
var1=&amp;#039;Welt&amp;quot;&lt;br /&gt;
var2=&amp;quot;Wetter&amp;quot;&lt;br /&gt;
maske=&amp;quot;Hallo {} mit schönem {}!&amp;quot;&lt;br /&gt;
print(maske.format(var1, var2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ergibt: Hallo Welt mit schönem Wetter!&lt;br /&gt;
&lt;br /&gt;
===Methodenaufruf===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
heute=now()&lt;br /&gt;
print(heute.strftime(&amp;#039;%d.%m.%Y&amp;#039;))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gibt das aktuelle Datum im Format dd.mm.YYYY aus&lt;br /&gt;
[[Kategorie:Python]]&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>