- 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 %:

推薦閱讀
- Expert C++
- 案例式C語言程序設計
- C程序設計簡明教程(第二版)
- AngularJS Testing Cookbook
- 微信公眾平臺與小程序開發(fā):從零搭建整套系統(tǒng)
- 面向STEM的Scratch創(chuàng)新課程
- 面向對象程序設計(Java版)
- Java軟件開發(fā)基礎
- 程序設計基礎教程:C語言
- 計算機應用基礎實踐教程
- Procedural Content Generation for C++ Game Development
- Scratch3.0趣味編程動手玩:比賽訓練營
- Mastering ArcGIS Server Development with JavaScript
- Zend Framework 2 Cookbook
- JavaScript高級程序設計(第4版)