indentation

    3热度

    4回答

    我刚开始学习Haskell,我简要地阅读了一些缩进规则,在我看来,Haskell在缩进方面的行为就像Python一样(我可能是错的)。无论如何,我试图写一个尾递归斐波纳契函数,我不断收到一个缩进错误,我不知道我在哪里缩进我的代码错误。 错误消息: F1.hs:6:9: error: parse error (possibly incorrect indentation or mismat

    0热度

    2回答

    我有一个Code :: Blocks的问题,有没有办法改变保留字的自动完成缩进? 我得到什么: printf(|) scanf(|) 我想什么: printf(|); scanf(|); 我希望它每次我输入的时候自动添加分号保留字。 对于|是光标所在的位置。 是否可以编辑代码完成插件?

    0热度

    1回答

    在vim中,当我在使用gqip的纯文本文件中格式化以下段落时,格式化程序将它像枚举列表一样缩进。 原始段落: Here is some text including a number 3 in the paragraph, which may be regarded as the start of a numbered list when I format it. 格式化(gqip后):

    1热度

    2回答

    我想在Python中更新字典值。我试图通过从值中减去3来更新字典中的值。 if buildings == 1: workpower -= 3 if workpower >= 0: farmplace1 = int(input("where do you want it?")) farmplace2 = int(input("where do yo

    -4热度

    1回答

    的Python:3.6版 编辑:记事本++ 链接到文件:GitHub Repository 我加了两行process_string.py并得到错误 File "process_string.py", line 14 if i.find(k)!=-1 and flag==False: ^ TabError: inconsistent use of tabs and spaces in indenta

    0热度

    2回答

    当我编写下面的代码时,我可以在HackMD中看到缩进。但是我在GitHub中看不到相同的效果。我能做些什么来解决它? <style> p { font-size: 16px; text-indent: 2em; } </style>

    -1热度

    1回答

    我目前正在使用Django上的一个项目,当我要将模型导入数据库models.py时,此错误出现: File "/home/hansen/Escritorio/SIDECO/sideco/models.py", line 31 class Empresa(models.Model): ^ IndentationError: expected an indented block 的代码如下: from

    0热度

    1回答

    我工作的乳胶文件在那里我有一个嵌套列表如下: 一个 一个 b 代码现在工作得很好,这是这样的: \begin{itemize} \item A \begin{itemize} \item a \item b \end{itemize} \end{itemize} 但我想删除A之前的点所以我做了以下内容: \begin{itemize}

    1热度

    1回答

    我想表明在html.dropdownlist与缩进项目 这是控制器 IEnumerable<ViewModels.testvm> test = db.Database.SqlQuery<ViewModels.testvm>(@"WITH tree (id, parentid, level, title, rn) as ( some code ) ***********SELECT i

    0热度

    2回答

    有趣的是来自C/C++开发经验的python。不要咆哮,但缩进和间隔的东西有点成为我生命中的祸根。所以这是问题。以此代码片断,按顺序键入,永不删除或在现有代码之间插入任何编辑。 while condition: line 1 line 2 line3 #outside the loop 它工作正常。但是,假设我想在循环中添加另一条指令。 (编辑使用jupyter笔记本和