Voici les résultats de votre recherche.
python @floss 2 Occurrences trouvées, Dernière modification : il y a 6 semaines changements principaux :
^Python 2 ^Python 3 ^
| print a|print (a)|
|7/3 → 2 \\ 7./3 → 2.33333333 |7/3 → 2.33333333 \\ 7 / / 3 → 2|
|pas de chaîne unicode|les c initinfo @teaching 5 Occurrences trouvées, Dernière modification : il y a 3 mois python;>
p=101325.
T=293.
n=1.
R=8.314
V=n*R*T/p
print V
</sxh>
Alternativement, une fois dans Idle, vo... 4
CaCl2=Ca+2.*Cl #110.98
AgCl=Ag+Cl #143.32
print "masses molaires NaCl, CaCl2, AgCl = ",NaCl, CaCl... recipite=7.94
chlorure=precipite/AgCl #0.0554005
print "nombre de mol de chlorure = ",chlorure
# Soit d... chlorure-2.*echdepart/CaCl2)/(1./NaCl - 2./CaCl2)
print "Masse de NaCl = ",m1 #2.49264
m2=echdepart-m1
p desinformations @teaching 4 Occurrences trouvées, Dernière modification : il y a 9 mois es-droit-de-reponse-reportage-france-5-juin-2019/?print =pdf|pdf]]. Voir aussi [[wp>fr:Olive_de_table|Oliv... * [[https://www.latavernedejohnjohn.fr/articles/print /15-faq-les-bandes-magnetiques-et-cassettes-audio-... ya Cherabuddi, John Glenn Morris Jr., Chang-Yu Wu print Medrxiv, DOI: https://doi.org/10.1101/2020.08.03.... t.com/articles/20200317/04381644114/volunteers-3d-print -unobtainable-11000-valve-1-to-keep-covid-19-patie notions_fondamentales @teaching:progappchim 77 Occurrences trouvées, Dernière modification : il y a 12 mois le langage lui-même (if, elif, while, for, else, print ,...).
* Instruction d'**affectation** utilisant... hage de sa valeur ; Dans un programme, on utilise print . Le nombre de chiffres affichés peut varier (essayer par exemple "1/3". et "print (1/3.)")
* **Typage automatique**. Attention au... e). Exemple :
<code python>
a = 0
if a > 0 :
print ("a est positif")
print ("car il est strictemen notions_avancees @teaching:progappchim 4 Occurrences trouvées, Dernière modification : il y a 12 mois d que v" if u > v else "v plus grand ou égal à u"
print (reponse)
</code>
===== map, filter, reduce, lam... =
* [[https://towardsdatascience.com/stop-using-print -to-debug-in-python-use-icecream-instead-79e17b963fcc|Stop Using Print to Debug in Python. Use Icecream Instead]]
=====... Messages):
for j in mailbox.retr(i+1)[1]:
print (j)
</code>
===== Création et gestion de package chempy @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 14 mois = 'Al'
C = 'Al2O3'
D = 'HCl'
E = 'H2O'
F = 'N2'
print (A, B, C, D, E, F)
reac, prod = balance_stoichiom numpy_simple @teaching:progappchim 47 Occurrences trouvées, Dernière modification : il y a 14 mois n>
import numpy as np
a = np.array([[1,2],[3,4]])
print (a)
print (a.dtype)
</code>
Sortie :
<code>
[[1 2]
[3 4]]
<type 'numpy.ndarray'>
</code>
<note tip>Pour d... de dimensions, les dimensions, le type de donnée
print (a, a.ndim, a.shape, a.dtype)
# avec des "floats" ... 6.6, 7.7, 8.8],
[9.9, 0.2, 1.3, 2.4],
])
print (b, b.ndim, b.shape, b.dtype)
# un tableau de zéro presentation_principes @teaching:progappchim 31 Occurrences trouvées, Dernière modification : il y a 15 mois 15
>>> T=20+zero
>>> P=n*R*T/V
>>> atm=101325
>>> print (P,P/atm)
101555.51000000001 1.0022749568221072
>>... ro=6.02214199E23
>>> kboltzmann=1.3806505E-23
>>> print (Navogadro*kboltzmann)
8.31447334956
>>> 2**0.5
1.... > a=’bonjour’
>>> b="bonjour"
>>> c=’Bonjour’
>>> print (a==b,a==c)
True False
>>> d="pâté123#"
>>> print d
pâté123#
>>> é=d
>>> long="""un
deux
...
dix"""
>>> p cuisine_moleculaire @teaching 1 Occurrences trouvées, Dernière modification : il y a 15 mois es-droit-de-reponse-reportage-france-5-juin-2019/?print =pdf|pdf]]. Voir aussi [[wp>fr:Olive_de_table|Oliv ppoo @teaching:progappchim 5 Occurrences trouvées, Dernière modification : il y a 15 mois
self.status = 'off'
led1 = Led(1, 'on')
print (led1)
print (type(led1))
print (type(Led))
print (led1.number)
print (led1.status)
</code>
===== Références =====
* [[https://fr.wikipe tkinter_gui_simple @teaching:progappchim 12 Occurrences trouvées, Dernière modification : il y a 16 mois s nécessite aussi de transformer les instructions print en print ().</note>
<note warning>Certaines fonctionnalités de tkinter semblent poser parfois des problè... f-8 -*-
from tkinter import *
def action():
print ("Yes, we can !")
root = Tk()
#w = Label(root, te... f-8 -*-
from tkinter import *
def action():
print ("Yes, we can !")
root = Tk()
#w = Label(root, te algos_entiers @teaching:progappchim 7 Occurrences trouvées, Dernière modification : il y a 16 mois a, b = b, a%b
return a
n1=210
n2=126
print (gcd(n1, n2))
</code>
Si on dispose des décomposi... a in range(2,n) if isprime(a)]
p=primelist(1000)
print (p)
</code>
L'algorithme peut être rendu plus eff... te avec les élements non nuls
p=primelist(1000)
print (p)
</code>
==== Références ====
* [[http://fr.... nd(n)
return li
p=prime_factors(1234567890)
print (p)
</code>
Exercices :
* amélioration la rech tris @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 17 mois m numpy import random
a=random.randint(0,1000,10)
print (a,len(a))
b=quicksort(a)
print (b,len(b))
</code>
On peut aussi rendre la fonction encore plus compacte, mendeleev @teaching:progappchim 13 Occurrences trouvées, Dernière modification : il y a 18 mois for i in range(1,108)]
for i in range(1,108):
print (x[i-1], y[i-1])
plt.figure()
plt.plot(x, y)
plt.... aux valeurs en utilisant le symbole de l'élément
print (element('Na').atomic_number)
print (element('Na').melting_point)
print (element('Na').boiling_point)
# on peut aussi accéder aux mêmes valeu pandas @teaching:progappchim 12 Occurrences trouvées, Dernière modification : il y a 18 mois ames = [name.replace(' ', '_') for name in names]
print (names)
namesfr = [
'Largeur des épaules',
...
]
dict_names_fr = dict(zip(names, namesfr))
print (dict_names_fr)
file_url = "http://linus.umons.ac... iter=' | ', engine='python', index_col=False)
#
print (df)
# pandas misc
# https://stackoverflow.com/qu... ing-with-complex-criteria-from-pandas-dataframe
#
print (df.columns)
print (df.Age)
print (df.dtypes)
print ( bioinformatic @teaching:progappchim 20 Occurrences trouvées, Dernière modification : il y a 20 mois lancer_pieces @teaching:exos 3 Occurrences trouvées, Dernière modification : il y a 21 mois protoxyde_azote @teaching 1 Occurrences trouvées, Dernière modification : il y a 2 ans print_format @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 2 ans urllib @teaching:progappchim 4 Occurrences trouvées, Dernière modification : il y a 2 ans openbabel_jmol @teaching:progappchim 6 Occurrences trouvées, Dernière modification : il y a 2 ans polynomes-bonus @teaching:progappchim 4 Occurrences trouvées, Dernière modification : il y a 2 ans slices @teaching:progappchim 14 Occurrences trouvées, Dernière modification : il y a 2 ans ph_courbe_titrage_2011 @teaching:progappchim 4 Occurrences trouvées, Dernière modification : il y a 3 ans game_of_life_conway-2012 @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 3 ans analyse_images @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 3 ans random_walk_2d-simple @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 3 ans elements_molecules @teaching:progappchim 39 Occurrences trouvées, Dernière modification : il y a 3 ans ph-3d @teaching:progappchim 8 Occurrences trouvées, Dernière modification : il y a 3 ans csv @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 3 ans codes_presentation @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 3 ans codes_astuces @floss:python 5 Occurrences trouvées, Dernière modification : il y a 3 ans collection_namedtuple_exemple @teaching:progappchim 4 Occurrences trouvées, Dernière modification : il y a 3 ans collection_counter_exemple @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 3 ans paradoxe_anniversaires @teaching:exos 2 Occurrences trouvées, Dernière modification : il y a 4 ans tableau_periodique_2013 @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 4 ans representation_molecules_2013 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 4 ans potentiel_morse @teaching:progappchim:matplotlib_gallery 1 Occurrences trouvées, Dernière modification : il y a 4 ans exos_empreinte_carbone @teaching 3 Occurrences trouvées, Dernière modification : il y a 4 ans math_nombres @teaching:progappchim 8 Occurrences trouvées, Dernière modification : il y a 4 ans exos_energie_d_ionisation @teaching 1 Occurrences trouvées, Dernière modification : il y a 5 ans glossaire_chimie @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 5 ans scipy_simple @teaching:progappchim 9 Occurrences trouvées, Dernière modification : il y a 5 ans polynomes-7 @teaching:progappchim 5 Occurrences trouvées, Dernière modification : il y a 5 ans simulations_random_walks_codes @teaching:exos 21 Occurrences trouvées, Dernière modification : il y a 6 ans sequences_brins_adn @teaching:exos 6 Occurrences trouvées, Dernière modification : il y a 6 ans matrices @teaching:progappchim 6 Occurrences trouvées, Dernière modification : il y a 6 ans rotateur_biatomique @teaching:progappchim:matplotlib_gallery 6 Occurrences trouvées, Dernière modification : il y a 6 ans suite_de_fibonacci-5 @teaching:progappchim 19 Occurrences trouvées, Dernière modification : il y a 7 ans testjs @teaching:progappchim 6 Occurrences trouvées, Dernière modification : il y a 7 ans koch_snowflake @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 7 ans fizz_buzz @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-6 @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-11 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-10 @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-5 @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-4 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-2 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 7 ans polynomes-3 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 7 ans informatique @teaching 2 Occurrences trouvées, Dernière modification : il y a 7 ans factorielle-3 @teaching:progappchim 5 Occurrences trouvées, Dernière modification : il y a 7 ans factorielle-2 @teaching:progappchim 6 Occurrences trouvées, Dernière modification : il y a 7 ans factorielle @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 7 ans suite_de_fibonacci-4 @teaching:progappchim 10 Occurrences trouvées, Dernière modification : il y a 7 ans suite_de_fibonacci-3 @teaching:progappchim 16 Occurrences trouvées, Dernière modification : il y a 7 ans suite_de_fibonacci-2 @teaching:progappchim 12 Occurrences trouvées, Dernière modification : il y a 7 ans suite_de_fibonacci @teaching:progappchim 12 Occurrences trouvées, Dernière modification : il y a 7 ans pieges @teaching:progappchim 6 Occurrences trouvées, Dernière modification : il y a 8 ans pressions_partielles_systemes_non_ideaux @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 8 ans solubilite_ph_t @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 8 ans faq @floss:python 2 Occurrences trouvées, Dernière modification : il y a 8 ans fit_modele_einstein @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 9 ans lennard-jones @teaching:progappchim 5 Occurrences trouvées, Dernière modification : il y a 9 ans ensemble_mandelbrot_2013 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 9 ans diffusion_chimique_1d @teaching:progappchim 5 Occurrences trouvées, Dernière modification : il y a 9 ans osm_interrogation @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 9 ans calcul_matriciel_2012 @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 11 ans ph_acides_bases_2013 @teaching:progappchim 2 Occurrences trouvées, Dernière modification : il y a 11 ans pavage_penrose_2013 @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 11 ans poker_menteur @teaching:exos 8 Occurrences trouvées, Dernière modification : il y a 11 ans solvents_data_class @teaching:progappchim 21 Occurrences trouvées, Dernière modification : il y a 12 ans dictionary_adn_protein @teaching:progappchim 3 Occurrences trouvées, Dernière modification : il y a 12 ans polynomes-7-contrib1 @teaching:progappchim 1 Occurrences trouvées, Dernière modification : il y a 12 ans