- 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.
推薦閱讀
- 演進(jìn)式架構(gòu)(原書第2版)
- Python科學(xué)計(jì)算(第2版)
- Computer Vision for the Web
- 自己動(dòng)手寫Java虛擬機(jī)
- Vue.js快跑:構(gòu)建觸手可及的高性能Web應(yīng)用
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- Redis Essentials
- Clojure Reactive Programming
- Python爬蟲、數(shù)據(jù)分析與可視化:工具詳解與案例實(shí)戰(zhàn)
- Python項(xiàng)目實(shí)戰(zhàn)從入門到精通
- Android應(yīng)用開發(fā)實(shí)戰(zhàn)
- JavaScript程序設(shè)計(jì):基礎(chǔ)·PHP·XML
- Learning Ionic
- Hacking Android
- Python 快速入門(第3版)