蜗牛快点爬 发表于 2020-10-8 09:30:47

小白求助Python中print函数中end=‘ ‘的用法


data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmYAAAA+CAYAAACBbtc5AAAYq0lEQVR4Ae1dQXajTA/8T+tLTHKIvHnJJSaL8RW8ylzgyyxzAa+z5H8CFxSFugHjZJy4Fjy1pJK6aYq2aOzkf8fjsbnW47///mve3999eA7MAXPAHDAHzAFz4CY48L9rLcpiXC7MXJS6MDcHzAFzwBwwB26JAy7M/ARyE08gt3RT+1z9IWYOmAPmwNflgAszF2YuzMwBc8AcMAfMAXPgSjiwvTD7+9zc7XbNLo4fz82rfGft8PPk2+2ah8O677P5VSYq/rdmf495vG/2b7Bb+qnQHDAHzAFzwBz4ThzYWJgdmofdXfP8tyu4Xn/dNbufh/7HBFGU3f167fW132dzYdbdbC9Pu+b+91v3NPO2b+53j83LlVT23+lm8Ll4cTcHzAFzwBz41xzYVpgdHiaF2G730Bxi1yx20pIdtDXF2XmFGe8unXaZnl6a9/eX5pELmj+Pza61n0gYOnb+7vfNW1/4RBx2q6hACj/H7D5qJysZ927XPP7xzfOvbx73bw6aA+aAOWAOXJoDmwqz2CHrdsRem+cfsTv23DygMGuLtufW3hU8p4JNXnXWCrVzCrO33/dDwTXaXUoKHBRmgaNijHNEu9+t6ou1IGIUgCuLsXY8Q5HXzgv1m15cGls7rvt9s39yYZbO1ej6eLHwHJkD5oA5YA58PQ5coDA7tMVX9/2xeLXZFWDta83Ka85aQQbfZxVmbcFDu2JtwYSiDbti0OnDP14xBvZDd69OhdkLFZzR74f2Sefom/rr3dS+Zr5m5oA5YA58XQ5sKsyOsSvGX+pvfwhw2hmT15znvNo8pzAbv17kAqa8Y1beFaMLe4kC7Zwds/YV7G7YBWx36vi8aIwuqPyrInPAHDAHzAFz4EtzYFthdhx2yGKXq/0FJr78z0Xa8djoDwPaQm1X/3HAOYVZeTcpCjO8eow2FTttwbTgC/X0WlGfRhYVd2feLKNzagvEBWM9sy89L+sufM0B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cyaF2KRQO+2i1X4QsLowaxfq7rsmb/zKYrSATy8Qf2AEgfmDBW1IJXjJzrgMM2dT/6X10nmqHeeB/kPWDsUv1dHvktzAQmJs2pfa4Ucc69zWONWBVTvraENqnyW74tAX2yO2Fp/FsK3W5rzcp8bUcOrL8ihGde0PeuxQ5Q9apcKMviv2/t60rzX715/TtQD91OTLb/zaMoo8+vL/277Zx6/BY72JwnDla9Fan/add608b563r8iBjYXZaScMH9b0K8zY8Rr9uQzxHT+qMOtfIcSiWXq6HpMVHwoliQsLf0mHfYnUXHMxc/jwzx2lPpAbMsOxj9uBVR22sNcO7SfLA4z6VEefwKsOPGTJr/ZMD1tmR25IxSyxawz6gp1zlGyIUewl7Zo7dNhUYpzof4nO2HFbXmf2xU+5MHunnbH73y+L/1zGuF9aM0b53ka7TlE4dnOxbO3hPngO2e42zf3MQ7bnynP1HTiwvTBb+Kcvlry6VMx5O2bbiIkPlbi4aKu8xIVHzqW51uKX5I2cnJfbfP7aVl3j1L9EzzBhw6F9qJ7FMwZtSOTlOPhC6sF4tIEv6ZwbGEiNnbNnuTgHt4ENW+1An1vwHJvlgy0bH3zIwfottnGtbvHcfc7DWue58Fy4MKMP/+yGuPRiiXz6QZX1zbYannPOtSMnMJwfbfgg2Y42S8XBB3tNAgsZWLRZIgfbog07S2BgAw526PBDws4SMYFBG361wb4Gh75rkvOhDTx0yGxM8Klcg41Yxauu+Tmmhg0fjiyHbf6QMgfMgVvjgAuzmcLs1gjh8/UiaA6YA+aAOWAO/DsOuDBzYTbaDfLN+O9uRs+9594cMAfMAXPAhZkLMxdm5oA5YA6YA+aAOXAlHHBhdiUXwk9JfkoyB8wBc8AcMAfMARdmLsz8lGQOmAPmgDlgDpgDV8IBF2ZXciH8lOSnJHPAHDAHzAFzwBz4P5H2Cohy/1R5AAAAAElFTkSuQmCC没有太明白 求大佬们解释一下end = ' '的意思{:10_303:}

liuzhengyuan 发表于 2020-10-8 09:36:16

https://fishc.com.cn/forum.php?mod=viewthread&tid=159045

昨非 发表于 2020-10-8 09:37:58

只是结束符而已
https://s1.ax1x.com/2020/09/16/wgqRRP.png

xu007xu 发表于 2020-10-8 10:17:14

蜗牛快点爬 发表于 2020-10-9 09:12:32

liuzhengyuan 发表于 2020-10-8 09:36
https://fishc.com.cn/forum.php?mod=viewthread&tid=159045

谢谢~

蜗牛快点爬 发表于 2020-10-9 09:14:14

昨非 发表于 2020-10-8 09:37
只是结束符而已

谢谢~

蜗牛快点爬 发表于 2020-10-9 09:16:25

xu007xu 发表于 2020-10-8 10:17
end是print()指定最后的结束符,默认是换行符('\n')

print()还有5个参数,分别是


哈哈 只能看懂前三个参数 后面的慢慢学吧
谢谢~

liuzhengyuan 发表于 2020-10-9 15:57:32

蜗牛快点爬 发表于 2020-10-9 09:12
谢谢~

如果满意请设置【最佳答案】
页: [1]
查看完整版本: 小白求助Python中print函数中end=‘ ‘的用法