- Hands-On Penetration Testing with Python
- Furqan Khan
- 84字
- 2021-07-02 14:13:47
String types
We know that a string is a collection of characters. In Python, string types come under the sequence category. Strings are really powerful and have many methods that can be used to perform string manipulation operations. Let's look at the following piece of code, which introduces us to strings in Python. Strings can be declared within both single and double quotes in Python:

In the preceding code, we are simply declaring a string called my_str and printing it on the console window.
推薦閱讀
- C及C++程序設計(第4版)
- Getting Started with Gulp(Second Edition)
- SQL Server 2012數據庫技術及應用(微課版·第5版)
- Practical Internet of Things Security
- JIRA 7 Administration Cookbook(Second Edition)
- Processing互動編程藝術
- Scratch真好玩:教小孩學編程
- HTML5+CSS3網站設計教程
- 用Flutter極速構建原生應用
- Mastering Python Networking
- ArcGIS for Desktop Cookbook
- 深度學習原理與PyTorch實戰(第2版)
- Practical GIS
- Learning Android Application Testing
- Magento 2 Beginners Guide