郁闷的indentation

| 2 Comments | No TrackBacks
一直都想把web programming好好学习和实践一下,可惜总是持续了一段时间就停下了。最近由于xml keyword search research的一些idea用web的方式能够更好的呈现,因此又重新啃起了python。把lighttpd server配置好,随便写了一个小程序想试着运行一下,结果浏览器上出现了internal server error。对着程序检查了好久也没有发现什么问题。写程序用的是Notepad++,最后实在没辙只好打开IDLE,想用python shell run一下。打开一看就傻眼了,其中有一行代码因为偷懒是从另外一个地方copy过来的,所以indentation没有consistent,有一行代码用了4个空格,其他的用的是tab,在Notepad++中也没有看出来,就没有朝indentation去想。编程有时真是一个silly mistake就可以浪费很长的时间。

No TrackBacks

TrackBack URL: http://lua.me/cgi-bin/mt/mt-tb.cgi/1

2 Comments

我把VS和UE的Tab缩进改成2个空格了,据说这样很好,在任何编辑器中都不会让缩进乱掉。

PS: Python对缩进太依赖了。HOHO。

哦?我也改一下。多谢提醒:)

Leave a comment

Recent Comments

  • Jiang: 哦?我也改一下。多谢提醒:) read more
  • 北极冰仔: 我把VS和UE的Tab缩进改成2个空格了,据说这样很好,在任何编辑器中都不会让缩进乱掉。 PS: Python对缩进太依赖了。HOHO。 read more

About this Entry

This page contains a single entry by Jiang published on August 20, 2008 11:47 AM.

编辑真猛 was the previous entry in this blog.

Bitmap Index is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.