Latest web development tutorials

Python comprend des exercices 60

Python 100 Li Python 100 Li

Titre: calculer la longueur de chaîne.

Analyse du programme: Aucun.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

sStr1 = 'strlen'
print len(sStr1)

L'exemple ci-dessus sortie est:

6

Python 100 Li Python 100 Li