tl='What a beautiful {}';a1="girl!";cl=tl.format(a1);print(tl,a1,"\n",cl) 同一代码,PYTHON3.9.1结果和imooc结果怎么这么大差别? ('What a beautiful {}', 'girl!', '\n', 'What a beautiful girl!') What a beautiful {} girl! What a beautiful girl!
运行方式不一样