If there is more than one format in the string, you need to pass a tuple as right operand, as in this example: 如果有超過一個(gè)的字符串要格式化為一體,就需要將它們傳入一個(gè)元組做為右值,如下所示: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678} ...
www.dbjr.com.cn/shouce/python/python_cn... 2025-5-27