1
0
Bifurcation 0
miroir de https://github.com/PAPAMICA/Wiki-Tech.io.git synchronisé 2024-09-15 12:15:18 +02:00
Wiki-Tech.io/Scripting/Python/Manip-donnees.html
2021-06-07 08:52:29 +00:00

35 lignes
1,2 Kio
HTML

<!--
title: Python - Manipulation des données
description:
published: true
date: 2021-06-07T08:52:28.360Z
tags:
editor: ckeditor
dateCreated: 2021-06-07T08:01:47.026Z
-->
<figure class="image image_resized" style="width:53.94%;"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Python_logo_and_wordmark.svg/1200px-Python_logo_and_wordmark.svg.png" alt="Fichier:Python logo and wordmark.svg — Wikipédia"></figure>
<h1>Les listes</h1>
<p>Une liste se déclare avec des crochets et on accède à une donnée par son indice.</p>
<pre><code class="language-python">langages = ["python", "C#","java","C++"]
&gt;&gt;&gt; print(langages[1])
C#</code></pre>
<h2>Les actions possibles sur une liste</h2>
<p>list.<strong>append()</strong></p>
<p>list.<strong>insert()</strong></p>
<p>list.<strong>extend()</strong></p>
<p>list.<strong>remove()</strong></p>
<p>list.<strong>pop()</strong></p>
<p>list.<strong>index()</strong></p>
<p>list.<strong>count()</strong></p>
<p>list.<strong>sort</strong></p>
<p>list.<strong>reverse()</strong></p>
<h1>Les dictionnaires (json)</h1>
<p>&nbsp;</p>
<h1>CSV</h1>
<p>&nbsp;</p>
<h1>Lire un txt</h1>
<p>&nbsp;</p>
<h1>Formater des données</h1>
<p>&nbsp;</p>