python basic ② sous windows

Calcul

Attribuer une valeur à une variable

Nom de variable = valeur  ex)sum=10 、 animal='dog'

Pour vérifier la valeur stockée dans la variable, vous pouvez la vérifier avec print (nom de la variable)!

opérateur

+: Ajout -:soustraction *:multiplication /:division //:小数点以下切り捨ての割り算 %: Surplus (faire un surplus) **: Puissance de puissance

Opérateur d'affectation composée

Concaténation de chaînes

Concaténation de chaînes

'Chaîne de caractères A' + 'Chaîne de caractères B' ex) >>> 'Tomo' + 'Dachi' Ami

Concaténation répétée de chaînes

'String' * Entier positif   ex)>>>'ab'*4     abababab

Obtenir la longueur d'une chaîne

len ('chaîne')   ex)>>>len('2222222')     7

Recommended Posts

python basic ② sous windows
Python sur Windows
Installez python sur Windows
Exécutez Openpose sur Python (Windows)
Installer watchdog sur Windows + Python 3.3
Installation de Python la plus rapide sous Windows
Créer un environnement Python sur Windows
Construire un environnement Python avec Windows
J'ai exécuté python sur Windows
[Python] [Chainer] [Windows] Installer Chainer sous Windows
Utiliser Python sur Windows (PyCharm)
Mémo de construction de l'environnement Python sur Windows 10
Construction de l'environnement Anaconda Python sous Windows 10
installation de python2.7 dans un environnement Windows 32 bits
Installez xgboost (version python) sur Windows
Installez Python sur Windows + pip + virtualenv
Installez Pytorch sur Blender 2.90 python sous Windows
Lier Modelica et Python sous Windows
Installation de Kivy-Designer sur Windows10 64 bits Python3.5
Mecab / Cabocha / KNP sur Python + Windows
Installer l'environnement de développement Python sur Windows 10
Fichier CGI Python créé sous Windows
Premiers pas avec Python 3.8 sous Windows
Reproduire la recherche à une touche avec Python 3.7.3. (Windows 10)
RF Python Basic_01
twitter avec python3
environnement windows python
Installation de Python (Windows)
Écriture de base Python
Créer un environnement de développement Python basé sur GVim sur les paramètres de base de Windows 10 (2)
python sur mac
Grammaire de base Python3
Python sur Windbg
RF Python Basic_02
Remarques sur l'utilisation d'OpenCV avec Windows10 Python 3.8.3.
Exécutez le servo avec Python sur ESP32 (Windows)
[Kivy] Comment installer Kivy sur Windows [Python]
Virtualenv ne fonctionne pas sur Python 3.5 (Windows)
Utiliser sans installer python 2.x sous Windows
Édition de base Python Memo
Installer python sur WSL
Cours de base Python (7 dictionnaire)
Installez et exécutez Python3.5 + NumPy + SciPy sur Windows 10
Mettez MicroPython sur Windows pour exécuter ESP32 sur Python
Configuration de PyOpenGL sur Python 3
Tri de base en Python
Installez Python sur Pidora.
(Windows) Causes et solutions de contournement pour UnicodeEncodeError dans Python 3
Créez simplement un environnement d'exécution Python 3 sous Windows
Cours de base Python (9 itérations)
Pylint sur Windows Atom
Linux (WSL) sous Windows
Méthode d'installation Python Windows
[python] méthode de base de la classe
Cours de base Python (11 exceptions)
Installez Python sur Mac
Installez OpenCV 4.0 et Python 3.7 sur Windows 10 avec Anaconda