print()加 f 的作用是格式化输出,若是包含字典,可以管控到字典里的表达式;举例: print(f ”输出为:{2*2}“) 执行后: 如果不加 f print ("输出为:{2*2}} 执行后: