Mediawiki umgang: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
=Syntax highlighting=
+
=Tabellen erstellen=
<syntaxhighlight lang="python" style="border:3px dashed blue">
+
{| class="wikitable" style="text-align:center;"
def quick_sort(arr):
+
|- style="font-weight:bold;"
less = []
+
!
pivot_list = []
+
! a
more = []
+
! b
if len(arr) <= 1:
+
! c
return arr
+
|-
else:
+
| style="font-weight:bold;" | 1
pass
+
| 1a
</syntaxhighlight>
+
| 1b
 +
| 1c
 +
|-
 +
| style="font-weight:bold;" | 2
 +
| 2a
 +
| 2a
 +
| 2c
 +
|-
 +
| style="font-weight:bold;" | 3
 +
| 3a
 +
| 3b
 +
| 3c
 +
|}
 +
<pre>
 +
{| class="wikitable" style="text-align:center;"
 +
|- style="font-weight:bold;"
 +
!
 +
! a
 +
! b
 +
! c
 +
|-
 +
| style="font-weight:bold;" | 1
 +
| 1a
 +
| 1b
 +
| 1c
 +
|-
 +
| style="font-weight:bold;" | 2
 +
| 2a
 +
| 2a
 +
| 2c
 +
|-
 +
| style="font-weight:bold;" | 3
 +
| 3a
 +
| 3b
 +
| 3c
 +
|}
 +
</pre>

Version vom 22. April 2021, 08:07 Uhr

Tabellen erstellen

a b c
1 1a 1b 1c
2 2a 2a 2c
3 3a 3b 3c
{| class="wikitable" style="text-align:center;"
|- style="font-weight:bold;"
! 
! a
! b
! c
|-
| style="font-weight:bold;" | 1
| 1a
| 1b
| 1c
|-
| style="font-weight:bold;" | 2
| 2a
| 2a
| 2c
|-
| style="font-weight:bold;" | 3
| 3a
| 3b
| 3c
|}