Recherche
Voici les résultats de votre recherche.
Résultats plein texte:
- notions_fondamentales
- art) # count occurences of substring sub starting from start position in string s s.count(sub, start, end) # count occurences of substring sub from start to end — 1 position in string s s.find(sub)... ndex of first occurence of substring sub starting from start position in string s, returns -1 if not fou... returns index of first occurence of substring sub from start to end — 1 position in string s, return -1
- suite_de_fibonacci-5
- n/performance_tuning/timeit.php """ import timeit from fibonacci05_fonction import fibonacci_item from fibonacci06_fonctions import fibonacci_item_from_list from fibonacci07_fonction_recursive import fibonacci_item_recursive from fibonacci08_fonction_algo
- pandas
- uestions/15315452/selecting-with-complex-criteria-from-pandas-dataframe # print(df.columns) print(df.Age... à combiner...) <code python> import pandas as pd from scipy import stats </code> Références : * [[ht... .com/analytics-vidhya/linear-regression-in-python-from-scratch-with-scipy-statsmodels-sklearn-da8e373cc89b|Linear Regression in python from scratch with scipy, statsmodels, sklearn]] * [[
- suite_de_fibonacci-3
- ppelant d'autres fonctions, avec **fibonacci_list_from_items(n)** qui construirait la liste à partir de ... nnant un élément particulier, et **fibonacci_item_from_list(n)** qui renverrait l'élément d'indice n com... ans.append(b) return ans def fibonacci_list_from_items(n): # construit la liste à partir de la... nacci_item(i)) return ans def fibonacci_item_from_list(n): # renvoie l'élément d'indice n comme
- tkinter_gui_simple
- y> #!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * root = Tk() w=Label(root, text=... y> #!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * def action(): print("Yes, w... y> #!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * def action(): print("Yes, w... y> #!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * def action(): print("Yes, w
- numpy_simple
- "array" pour des polynômes """ import numpy as np from numpy.polynomial import Polynomial as P # les co... np # directive d'importation standard de numpy from numpy import fft # importation spécifique du mo... ule fft de numpy import matplotlib.pyplot as plt #from scipy import fftpack # directive d'importation s... rence/api.html#guidelines-for-importing-functions-from-scipy #from pylab import * # directive d'importa
- notions_avancees
- HOST = "smtp.mydomain.com" SUBJECT = "Test email from Python" TO = "mike@mydomain.com" FROM = "python@mydomain.com" text = "blah blah blah" BODY = "\r\n".join(( f"From: {FROM}", f"To: {TO}", f"Subject: {SUBJECT}", "", text) ) server = smtplib.SMTP(HOST)
- bioinformatic
- rint() # utilisation de la librairie collections from collections import defaultdict ncount = defaultdi... ncount['G'], ncount['T']) # collections.Counter from collections import Counter for k,v in sorted(Coun... p://www.uniprot.org/uniprot/uniprot_id.fasta """ from Bio import SeqIO from Bio import ExPASy from Bio import SeqIO dic = {"UUU":"F", "UUC":"F", "UUA":"L",
- matplotlib_simple
- r une certaine compatibilité avec Matlab) : <code>from pylab import *</code> ===== Graphiques de séries... simple d'une fonction : cosinusoïde amortie """ from pylab import * # directive d'importation simplifi... 12ccdc359bc|Everything about plotting in Python - From matplotlib to pandas.plot()]] Medium, 17/07/2020 ... ompleted Matplotlib tutorials for Python plotting from basic to advanced, with 90+ examples]], Medium, 2
- mendeleev
- le/ * https://github.com/lmmentel/mendeleev """ from mendeleev import element import matplotlib.pyplot... le/ * https://github.com/lmmentel/mendeleev """ from mendeleev import element # on peut accéder aux v... 9:11:22 2021 @author: villersd """ import string from mendeleev import element print(list(range(6))) fo... installé la librairie mendeleev : <code python> from mendeleev import element for Z in range(1,19):
- presentation_principes
- avec le module standard Turtle ==== <code python> from turtle import * reset() i=0 while i<120: for... avec le module standard Turtle ==== <code python> from turtle import * reset() x=-100 y=-100 i=0 while ... l’interface graphique Tkinter ==== <code python> from tkinter import * fen01 = Tk() fen01.title("Lectu... xercice utilisant la librairie graphique Tkinter from tkinter import * # définition des gestionnaires
- scipy_simple
- rence/api.html#guidelines-for-importing-functions-from-scipy|site de Scipy]]) : <code>from scipy import optimize from scipy import interpolate from scipy import integrate ...</code> ===== Fonctionnalités ===== La librair
- codes_presentation
- -*- coding: UTF-8 -*- # exemple de base turtle # from turtle import * import sys import time reset() x... -8 -*- # lecture de 2 masses par une fenêtre tk from tkinter import * fen01 = Tk() fen01.title("Lectu... xercice utilisant la librairie graphique Tkinter from tkinter import * # définition des gestionnaires ... on # -*- coding: utf-8 -*- # cosinusoïde amortie from pylab import * def my_func(t): s1 =
- fit_modele_einstein
- instein """ import numpy as np import scipy as sp from scipy.optimize import leastsq import matplotlib.p... e_Debye """ import numpy as np import scipy as sp from scipy.optimize import leastsq from scipy import integrate from scipy.integrate import simps import matplotlib.pyplot as plt def f(x):
- representation_molecules_2013
- pTags(s): ''' Strips HTML tags. Taken from http://aspn.activestate.com/ASPN/Cookbook/Python/... code SMILE ''' file_name=name+'.png' from rdkit.Chem import AllChem from rdkit.Chem import Draw mol = AllChem.MolFromSmiles(smiles) A... de données." c.close() '''Interface ''' from Tkinter import * root=Tk() #On crée la fenêtre ro