开发者

What is the easiest way to print 10 characters in Python?

In Perl it'开发者_StackOverflow中文版s as easy as print "A"x10

What about in python?


Before python3+:

print "A" * 10

In python 3+:

print("A"*10)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜