发布于 2021-01-31 03:00:04
发布于 2021-01-31 02:10:23
for c in'BbBbbbBb':print c+'uffalo',它依赖于Python2打印魔术,它自动地在打印对象如果它认为它不是在行的开头之前添加一个空格。
print'uffalo '.join('BbBbbb'*2)[:63]对阿纳果醇溶液的简单修改就是相同的长度。
print(*[x+'uffalo'for x in'BbBbbbBb'])print(*map("{}uffalo".format,'BbBbbbBb'))发布于 2021-01-31 03:24:06
wM?Im_ḋ162¨Ḃ=F这是一个简单的挑战,但很有趣:)
wM?Im_ḋ162¨Ḃ=F
¨Ḃ=F Taking the compressed string "Buffalo" (uppercase B)
M For each digit in
ḋ162 the binary digits of 162 ([1,0,1,0,0,0,1,0]):
? if the digit is 1
I return the string itself
if the digit is 0
m_ convert each character to lowercase
w Join all strings with spaceshttps://codegolf.stackexchange.com/questions/218284
复制相似问题