Accueil / Programmation / Programming Languages

Programming Languages

Ngôn ngữ lập trình

(English) Compile and link C++ source codes and headers from terminal in MacOS

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

(English) Introduction to default parameters in C++

Default parameters in C++

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

How to create a temporary file to store data

Create temporary files

Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application restarts or shuts down. How do we create such a ...

Lire la suite...

Fastest way to get the first n elements of a List into an Array

Fastest way to get the first n elements of a List or an Array

def s = ‘Hello Groovy world!’ assert s.take(5) == ‘Hello’ assert s.drop(6) == ‘Groovy world!’ Python Let’s assume an arbitrary list/array: in_list = list(range(10)) // Python2: in_list = range(10) // in_array = [i for i in range(10)] Slicing the list ...

Lire la suite...

(English) Create and manage virtual environments in Python

Create and manage virtual environments in Python

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

How to find the mime type of a file in Python

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. It is defined and standardized in IETF’s RFC 6838. The screenshot showing a list ...

Lire la suite...

Lire et écrire avec fichier CSV dans Python

An example of CSV format

It is possible to read and write CSV (comma separated values) files using Python 2.4 Distribution. Like most languages, file operations can be done with Python. Writing a CSV file with Python can be done by importing the CSV module and creating a write ...

Lire la suite...

Comment utiliser urllib en Python

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

Comment boucler un dictionnaire en Python

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

(English) Using Feedparser in Python to read RSS

BioModels' Models of The Month RSS feeds

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...