Latest web development tutorials

Pythonは演習60、

Pythonの100リー Pythonの100リー

タイトル:文字列の長さを計算します。

プログラム解析:なし。

ソースコード:

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

sStr1 = 'strlen'
print len(sStr1)

上の例の出力は、次のとおりです。

6

Pythonの100リー Pythonの100リー