python格式化字符串

1.%s

2.format

3.print(f'sum:{num}')

原文地址:https://www.cnblogs.com/wanghuaqiang/p/11533950.html