English 中文(简体)
我的法典有一处白天错误。 我如何确定这一点?
原标题:My code has a whitespace error. How can I fix this?

when i paste this:

t= int(input())
s=int(input())
h=int(input())
sp= (" ")
d=("*")

def trident(t, s, h, sp, d):
    gap = " "*s
    top = d+ gap+d+gap+d+gap
    fult = []
    for x in range (t):
        fult.append(top)
    midnum= (2*s)+3
    mid = d* midnum
    spacec = s+1
    spaceb= spacec * sp
    spacebot=spaceb+d+"
"
    bottem1=spacebot
    bottem=bottem1*h

    full= fult+[mid]+[bottem]
    return full


full = trident(t, s, h, sp, d)
for line in full:
    print(line)`

into this: https://dmoj.ca/problem/ccc03j1/submit it says theres a whitespace error. Why?

我测试了该守则,其产出是巨大的,但结果却说白空间错误。

问题回答

如果你看看你对你的呈文提供的反馈意见,那么反馈更确切地说是介绍Error,检查你的白色空间,这告诉你,你的解决方法是正确的组合空间。 因此,无论你再做错事,都必须与你重新印刷的白色空间做事。 这既指新路线,也指空间。

标准考试和测验师将错误地标明作为考试和测验师的呈报这一问题,因此,在这个问题上实际上有一个相同的检查者,检查你的产出与法官的产出完全相同。 如果你印刷太多或很少的白色空间特性,但如果你印刷了正确的答案,那么你会收到介绍性Error的西澳大利亚裁决,检查你的白色空间反馈。

请检查你的解决办法,确保你在需要时只印刷白色空间。





相关问题
Get webpage contents with Python?

I m using Python 3.1, if that helps. Anyways, I m trying to get the contents of this webpage. I Googled for a little bit and tried different things, but they didn t work. I m guessing that this ...

What is internal representation of string in Python 3.x

In Python 3.x, a string consists of items of Unicode ordinal. (See the quotation from the language reference below.) What is the internal representation of Unicode string? Is it UTF-16? The items ...

What does Python s builtin __build_class__ do?

In Python 3.1, there is a new builtin function I don t know in the builtins module: __build_class__(...) __build_class__(func, name, *bases, metaclass=None, **kwds) -> class Internal ...

what functional tools remain in Python 3k?

I have have read several entries regarding dropping several functional functions from future python, including map and reduce. What is the official policy regarding functional extensions? is lambda ...

Building executables for Python 3 and PyQt

I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed. I almost exclusively care about ...

热门标签