问答详情
源自:3-7 Python的字符串format

同一代码,PYTHON3.9.1结果和imooc结果怎么这么大差别?

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!

提问者:OtherSun 2020-12-17 17:19

个回答

  • 慕妹2561822
    2020-12-18 21:38:40

    运行方式不一样