- 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.
推薦閱讀
- 黑客攻防從入門(mén)到精通(實(shí)戰(zhàn)秘笈版)
- Hands-On Data Structures and Algorithms with JavaScript
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲(chóng)案例實(shí)戰(zhàn)全流程詳解(高級(jí)進(jìn)階篇)
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- C#應(yīng)用程序設(shè)計(jì)教程
- Kotlin Programming By Example
- Node.js從入門(mén)到精通
- 零基礎(chǔ)學(xué)HTML+CSS第2版
- Web程序設(shè)計(jì):ASP.NET(第2版)
- Anaconda數(shù)據(jù)科學(xué)實(shí)戰(zhàn)
- Python第三方庫(kù)開(kāi)發(fā)應(yīng)用實(shí)戰(zhàn)
- Joomla!Search Engine Optimization
- The Applied Data Science Workshop
- ASP.NET 3.5系統(tǒng)開(kāi)發(fā)精髓
- Sony Vegas Pro 11 Beginner’s Guide