可以看成是一种标志,加了f,则’ '内中出现了{ }括起来的表达式,则{xxx}会被传过来的实际数据替换;如果没有,则直接输出Hi, {name}. 例子如下: 此时输出 Hi,PyCharm. 此时输出 Hi, {name}