Skip to content
OpenSharing
  • Index des commandes Linux
  • Open Source
    • Linux
      • Commandes Linux
      • Linux – Trucs et astuces
      • Shell
    • DNS | DHCP
      • DHCP
        • ISC DHCP
      • DNS
        • ISC Bind9
    • Monitoring | Deploiement
      • Deploiement
        • Fog
        • Opsi
      • Monitoring
        • Graylog
        • Snipe-IT
    • Web Apps
      • e-commerce
        • PrestaShop
        • Magento
      • Web
        • Apache
        • Nginx
      • Cloud
        • ownCloud
        • Pydio
        • Seafile
      • Forum
        • MyBB
        • NodeBB
        • phpBB
        • Vanilla
      • Wiki
        • DokuWiki
        • Foswiki
        • MediaWiki
        • Tiki Wiki
      • CMS
        • Drupal
        • Joomla
        • WordPress
      • LMS
        • Chamilo
        • Claroline
        • Moodle
        • Opigno
        • Etherpad
    • Forge | DVCS | VCS
      • Git
      • GitHub
      • GitLab CE
  • Programmation
    • HTML
    • Python
    • Shell
    • YAML
  • Divers
    • Ethical Hacking
    • Logiciels
      • FFmpeg
      • Firefox
      • Java
      • Thunderbird
    • Sources
      • Références
      • Téléchargements
    • Virtualisation
      • Docker
      • Proxmox
      • Vagrant
      • VirtualBox
      • VMware
    • Windows
      • Commandes Windows
      • Windows – Trucs et astuces
    • Choucroute (privé)
      • Anglais
      • Bookmarks
      • Photographie
      • Rubik
  • Info
    • Contact
    • A propos
Menu Fermer
  • Index des commandes Linux
  • Open Source
    • Linux
      • Commandes Linux
      • Linux – Trucs et astuces
      • Shell
    • DNS | DHCP
      • DHCP
        • ISC DHCP
      • DNS
        • ISC Bind9
    • Monitoring | Deploiement
      • Deploiement
        • Fog
        • Opsi
      • Monitoring
        • Graylog
        • Snipe-IT
    • Web Apps
      • e-commerce
        • PrestaShop
        • Magento
      • Web
        • Apache
        • Nginx
      • Cloud
        • ownCloud
        • Pydio
        • Seafile
      • Forum
        • MyBB
        • NodeBB
        • phpBB
        • Vanilla
      • Wiki
        • DokuWiki
        • Foswiki
        • MediaWiki
        • Tiki Wiki
      • CMS
        • Drupal
        • Joomla
        • WordPress
      • LMS
        • Chamilo
        • Claroline
        • Moodle
        • Opigno
        • Etherpad
    • Forge | DVCS | VCS
      • Git
      • GitHub
      • GitLab CE
  • Programmation
    • HTML
    • Python
    • Shell
    • YAML
  • Divers
    • Ethical Hacking
    • Logiciels
      • FFmpeg
      • Firefox
      • Java
      • Thunderbird
    • Sources
      • Références
      • Téléchargements
    • Virtualisation
      • Docker
      • Proxmox
      • Vagrant
      • VirtualBox
      • VMware
    • Windows
      • Commandes Windows
      • Windows – Trucs et astuces
    • Choucroute (privé)
      • Anglais
      • Bookmarks
      • Photographie
      • Rubik
  • Info
    • Contact
    • A propos
Python
  1. Accueil>
  2. Programmation>
  3. Python

Python – String interning

  • Post author:DarwinOS
  • Post published:17 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) Toutes les chaines de caractères sont stockées à des adresses mémoires différentes, sauf si elles s'apparentent à une variable : minuscules, underscores et chiffres. a…

Continuer la lecturePython – String interning

Python – Object Mutability

  • Post author:DarwinOS
  • Post published:17 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) my_list = [1, 2, 3] print(my_list) print(hex(id(my_list))) [1, 2, 3] 0x5e020c8 my_list.append(4) print(my_list) print(hex(id(my_list))) [1, 2, 3, 4] 0x5e020c8 my_list_1 = [1, 2, 3] print(my_list_1)…

Continuer la lecturePython – Object Mutability

Python – repr VS str

  • Post author:DarwinOS
  • Post published:17 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) class Rectangle: def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height def perimeter(self): return 2 * (self.width +…

Continuer la lecturePython – repr VS str

Python – Try Except Finally

  • Post author:DarwinOS
  • Post published:17 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) a = 10 b = 1 try: a / b except ZeroDivisionError: print('division by 0') finally: print('this always executes') this always executes a = 10…

Continuer la lecturePython – Try Except Finally

Python – Type annotations

  • Post author:DarwinOS
  • Post published:15 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) def mystery_combine(a: str, b: str, times: int) -> str: return (a + b) * times a est de type strb est de type strtimes est…

Continuer la lecturePython – Type annotations

Python – Ternary Operator

  • Post author:DarwinOS
  • Post published:15 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) a = 5 if a < 10: print('a < 10') else: print('a >= 10') a < 10 a = 5 res = 'a < 10'…

Continuer la lecturePython – Ternary Operator

Python – Multi-line Statements

  • Post author:DarwinOS
  • Post published:15 juin 2019
  • Post category:Programmation/Python

Python - Notes (Menu principal) a = [1, 2, 3] a = [1, # comment 2, # comment 3] # comment a = (1, 2, 3) a = {1, 2,…

Continuer la lecturePython – Multi-line Statements

Python – Notes

  • Post author:DarwinOS
  • Post published:15 juin 2019
  • Post category:Programmation/Python

Python - Multi-line Statements Python - Ternary Operator Python - Type Annotations Python - Try Except Finally Python - repr VS str Python - Object Mutability Python - String Interning

Continuer la lecturePython – Notes

Scripting Python – Jupyter Markdown

  • Post author:DarwinOS
  • Post published:28 mai 2019
  • Post category:Programmation/Python

Markdown Cells Text can be added to Jupyter Notebooks using Markdown cells. You can change the cell type to Markdown by using the Cell menu, the toolbar, or the key…

Continuer la lectureScripting Python – Jupyter Markdown

Scripting Python – Jupyter Shortcuts

  • Post author:DarwinOS
  • Post published:27 mai 2019
  • Post category:Programmation/Python

Passer du mode commande au mode édition : EnterClic gauche sur la cellule Passer du mode édition au mode commande : EscapeCtrl + mClic gauche en dehors de la cellule…

Continuer la lectureScripting Python – Jupyter Shortcuts
  • 1
  • 2
  • Go to the next page
Merci aux généreux donateurs!

Cours Udemy proposés par OpenSharing

NOUVEAU
WordPress et les autres CMS Open Source
29,99€

Installez 36 CMS Open Source dont WordPress, Joomla, Drupal, Magento, PrestaShop, Craft, Jekyll, etc.

Comment installer un LMS Open Source - Part 1
(Version française) : 19,99€

Apprenez à installer un LMS tel que Moodle, Claroline, Chamilo ou Opigno sur une distribution Linux.

How to install an Open Source LMS - Part 1
(English Version) : 19.99$

Learn how to install an LMS such as Moodle, Claroline, Chamilo or Opigno on a Linux distribution.

Comment installer un LMS Open Source - Part 2
(Version française) : 19,99€

Utilisez Vagrant, Docker et Ansible pour automatiser l'installation de votre LMS.

How to install an Open Source LMS - Part 2
(English Version) : 19.99$

Use Vagrant, Docker and Ansible to automate the installation of your LMS.

Ajoutés dernièrement

  • FFmpeg – Commandes utiles
  • Opigno 2.x – Installation du serveur (Archive)
  • Opigno 2.x – Installation du serveur (Composer)
  • Claroline – Installation du serveur (dev) – FR
  • Claroline – Server installation (dev) – EN
  • Chamilo – Installation du serveur
  • Moodle – Installation du serveur
  • Opigno 1.xx – Installation du serveur
  • Les fichiers .htaccess
  • Apache mod_PHP et php-fpm

Faire un don avec PayPal

  • Faire un don

  • Social Share

    Facebook Twitter
  • Linux
  • PayPal