[字符串格式化和format](https://github.com/taizilongxu/interview_python#8-字符串格式化和format) > format在许多方面看起来更便利.你可以重用参数,但是你用%就不行 你确定??? ``` >>> data = {'name': 'Bob', 'age': 20} >>> '%(name)s is %(age)d years old, and %(name)s is a boy.' % data 'Bob is 20 years old, and Bob is a boy.' ```
字符串格式化和format
你确定???