Numpy arrays : j'ai des problème à le remplir
Résolu/Fermé
Lecodeurhtmlcss
yg_be
- Messages postés
- 76
- Date d'inscription
- lundi 20 avril 2020
- Statut
- Membre
- Dernière intervention
- 2 septembre 2021
yg_be
- Messages postés
- 19998
- Date d'inscription
- lundi 9 juin 2008
- Statut
- Contributeur
- Dernière intervention
- 10 août 2022
A voir également:
- Numpy arrays : j'ai des problème à le remplir
- Trying to access array offset on value of type bool ✓ - Forum - PHP
- Produit matriciel python sans numpy ✓ - Forum - Python
- Trying to access array offset on value of type bool in ✓ - Forum - PHP
- Array javascript - Articles
- Warning: count(): parameter must be an array or an object that implements countable ✓ - Forum - PHP
2 réponses
yg_be
Modifié le 24 févr. 2021 à 15:56
- Messages postés
- 19998
- Date d'inscription
- lundi 9 juin 2008
- Statut
- Contributeur
- Dernière intervention
- 10 août 2022
Modifié le 24 févr. 2021 à 15:56
bonjour,
as-tu lu la documentation de append() de numpy?
as-tu essayé avec un programme plus simple?
un exemple:
as-tu lu la documentation de append() de numpy?
as-tu essayé avec un programme plus simple?
un exemple:
import numpy as np probs = np.array([]) print(probs) np.append(probs,123) print(probs) probs=np.append(probs,456) print(probs)
Lecodeurhtmlcss
28 févr. 2021 à 19:47
- Messages postés
- 76
- Date d'inscription
- lundi 20 avril 2020
- Statut
- Membre
- Dernière intervention
- 2 septembre 2021
28 févr. 2021 à 19:47
Petit résultat de mon programme (il me reste à améliorer ma base de données...) :
abont o, jà à-cies, be lerentréespéfèman çase uitit bidetsé gns heté omois peme à tiontr sade çailal
yg_be
Modifié le 28 févr. 2021 à 20:41
- Messages postés
- 19998
- Date d'inscription
- lundi 9 juin 2008
- Statut
- Contributeur
- Dernière intervention
- 10 août 2022
Modifié le 28 févr. 2021 à 20:41
parfait!
24 févr. 2021 à 19:34