- Hands-On Penetration Testing with Python
- Furqan Khan
- 97字
- 2021-07-02 14:13:48
String indexes
It must be noted that strings can be accessed as a sequence of characters in Python. Strings can be thought of as a list of characters. Let's try to print the characters at various indices of the string, as shown in the following screenshot:

At index 0, the character 0 gets printed. At index 10, we have an empty space, while at index 5, we have the letter m. It should be noted that the sequences are stored in Python with a starting index of 0, and the same holds true for the string type.
推薦閱讀
- Learning Java Functional Programming
- DBA攻堅指南:左手Oracle,右手MySQL
- 編程卓越之道(卷3):軟件工程化
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- ASP.NET程序設(shè)計教程
- Learning Laravel's Eloquent
- Python之光:Python編程入門與實戰(zhàn)
- 愛上micro:bit
- Android嵌入式系統(tǒng)程序開發(fā):基于Cortex-A8(第2版)
- Xcode 6 Essentials
- 零基礎(chǔ)學(xué)C語言(升級版)
- Learning Bootstrap 4(Second Edition)
- Python預(yù)測分析實戰(zhàn)
- 計算機(jī)應(yīng)用基礎(chǔ)案例教程(第二版)
- Google Adsense優(yōu)化實戰(zhàn)