Pages
- Aws page
- cours n° 1 : Comprendre et développer le modèle, la vue et le présenteur d’une application GWT MVP Activity And Place
- Create a trading application in Java
- Developing a Contact Management Application with Angular 1.5X and Java
- Docker posts
- Flask pages
- Github Actions
- Gitlab
- Java development
- Javascript Tips
- Kubernetes
- Liste des Cours et Astuces GWT
- python page
- Spring Boot and Security
- Welcome
Catégories
-
Articles récents
Commentaires récents
- tanmay dans Defining a custom Collector in Java 8
- davidhxxx dans Defining a custom Collector in Java 8
- Tai dans Defining a custom Collector in Java 8
- mahieddine dellabani dans CORS with Spring Boot
- davidhxxx dans CORS with Spring Boot
Archives
- avril 2024
- novembre 2023
- août 2023
- juillet 2023
- mai 2023
- avril 2023
- mars 2023
- février 2023
- décembre 2022
- novembre 2022
- octobre 2022
- septembre 2022
- juillet 2022
- juin 2022
- mai 2022
- avril 2022
- mars 2022
- décembre 2021
- juillet 2021
- mars 2021
- février 2021
- janvier 2021
- novembre 2020
- août 2020
- juillet 2020
- juin 2020
- mai 2020
- avril 2020
- mars 2020
- février 2020
- janvier 2020
- décembre 2019
- novembre 2019
- octobre 2019
- septembre 2019
- août 2019
- juin 2019
- mai 2019
- avril 2019
- mars 2019
- décembre 2018
- novembre 2018
- octobre 2018
- juillet 2018
- juin 2018
- février 2018
- décembre 2017
- juillet 2017
- juin 2017
- mai 2017
- avril 2017
- février 2017
- janvier 2017
- décembre 2016
- octobre 2016
- septembre 2016
- août 2016
- juillet 2016
- juin 2016
- mai 2016
- décembre 2015
- novembre 2015
Archives mensuelles : mars 2022
lambda,dynamic function calls and comprehensions in python
Comprehension A concise way to create a new list or a new dictionary from an existing iterable or sequence. Syntax : It consists of brackets (for list comprehension) and of braces(for dict comprehension) containing an expression followed by a for … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
python: common string functions
chapters transformation functions finding functions checking functions transformation functions transformations functions doesn’t modify the current string since strings are imitable.Instead of,they return a copy. remove leading and trailing whitespace:strip() remove leading whitespace:lstrip() remove trailing whitespace:rstrip() split a string into a … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
Iterations with python
Loop for in statement: iterate over any sequences The sequence can be a list,a string,a tuple and so for… in python this statement is very very very common. In fact for most of things we need to iterate we will … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
execute a command with python
Execute shell process with subprocess module (Python 3.5) goal and general advices goal: The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
regex in python
two main ways to use regex – create a pattern object and apply regex function on it: pattern: Pattern[str] = re.compile(’animal’) result: Optional[Match[str]] result = pattern.match(’I am an animal’) result = pattern.match(’I am a boy’) result = pattern.search(’I am a … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
python imports
Definitions Module: a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module name (as a string) is available as the value of the global variable __name__. … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
File and path in python with pathlib api
common functions and variables Functions to create or retrieve path objects Create a path pointing to the current working directory (as returned by os.getcwd()) : cwd: Path = Path.cwd() Create a path by concatenating a Path with a String object: … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
write and read file in python
Read text files By default python reading file API preserves the break-line character (\n on Linux for example). in the example below we mean by « cleaned lines »,lines that we removed the break line characters Read lines in memory: def read_lines_in_memory(filename: … Continuer la lecture
Publié dans Non classé
Laisser un commentaire