- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 52字
- 2021-07-09 20:40:23
Single assignment
Here, we will illustrate the use of the assignment operator (=) with an example:
city='London' # A string variable assignment.
money = 100.75 # A floating point number assignment
count=4 #An integer assignment
In this case, we assigned three different values to three variables using the = operator.
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Kibana Essentials
- Mastering Natural Language Processing with Python
- 實戰Java程序設計
- Koa開發:入門、進階與實戰
- Mastering Swift 2
- Mastering JBoss Enterprise Application Platform 7
- 程序設計基礎教程:C語言
- NGINX Cookbook
- Webpack實戰:入門、進階與調優
- Create React App 2 Quick Start Guide
- 一本書講透Java線程:原理與實踐
- Visual Basic程序設計習題與上機實踐
- 零基礎學Scratch 3.0編程
- 深入解析Java編譯器:源碼剖析與實例詳解