- Mastering Python Scripting for System Administrators
- Ganesh Sanjiv Naik
- 56字
- 2021-07-02 14:00:21
% string formatting operator
% is a string formatting operator in Python. Refer to the following example:
#!/usr/bin/python3
print ("Hello this is %s and my age is %d !" % ('John', 25))
Output:
Hello this is John and my age is 25 !
The following table shows a list of symbols used along with %:

推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- Objective-C Memory Management Essentials
- SOA實踐
- 程序設(shè)計與實踐(VB.NET)
- HTML5+CSS3基礎(chǔ)開發(fā)教程(第2版)
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- Cocos2d-x學(xué)習(xí)筆記:完全掌握Lua API與游戲項目開發(fā) (未來書庫)
- 軟件測試技術(shù)指南
- Angular開發(fā)入門與實戰(zhàn)
- Python程序設(shè)計與算法基礎(chǔ)教程(第2版)(微課版)
- Kubernetes進(jìn)階實戰(zhàn)
- Orchestrating Docker
- ASP.NET求職寶典
- Python Deep Learning
- Python應(yīng)用與實戰(zhàn)