留言板

  建一个留言板,大家有想说的就留言在下面吧。

1# Admin   said this at 2010-07-29 14:12 : [Quote]
沙发
2# hef   said this at 2010-07-29 17:42 : [Quote]
我表示 严重的算术题 很难
3# args   said this at 2010-07-30 11:49 : [Quote]
我表示应该改成微积分的。
4# hef   said this at 2010-07-31 00:07 : [Quote]
Quoted args:

我表示应该改成微积分的。


这个想法是 超现实 主义
5# Admin   said this at 2010-07-31 00:11 : [Quote]
Quoted args:

我表示应该改成微积分的。

Quoted hef:

这个想法是 超现实 主义


你没见过那个求极限的验证码吧,另这么晚还不睡觉啊。
6# cindy   said this at 2010-07-31 01:48 : [Quote]
我汗,这个留言板的URL太戳了。
7# Admin   said this at 2010-07-31 08:36 : [Quote]
Quoted cindy:

我汗,这个留言板的URL太戳了。


果断换掉。
8# hef   said this at 2010-08-30 16:37 : [Quote]
Quoted sfxeeun:

This comment has been deleted.


这仁兄 是个广告党
9# hef   said this at 2010-09-06 23:12 : [Quote]
去了北京 别忘了 更新blog...
JIAYOU
10# 棉花糖   said this at 2010-09-07 12:30 : [Quote]

11# Admin   said this at 2010-09-07 15:00 : [Quote]
Quoted hef:

去了北京 别忘了 更新blog...
JIAYOU


这地一直都会在的。
12# Admin   said this at 2010-09-07 15:00 : [Quote]
Quoted 棉花糖:



不哭,擦擦。
13# 老王python   said this at 2010-09-10 10:27 : [Quote]
piglei加油阿,以后常联系阿,以后去北京找你玩
14# hef   said this at 2010-10-15 17:52 : [Quote]
明天重阳了
哈皮brithday
15# Admin   said this at 2010-10-17 00:32 : [Quote]
Quoted hef:

明天重阳了
哈皮brithday


嘿嘿,谢谢
16# song   said this at 2010-11-20 21:04 : [Quote]
Powered by Django. Hosted on Webfaction
© 2009 - 2010 Piglei. All rights reserved.

请问这是什么意思? Django仅仅是一个web框架吧,仅仅用django就可以搭建博客吗? 像wordpress一样?
17# song   said this at 2010-11-20 21:05 : [Quote]
用户体验还不错。
18# Admin   said this at 2010-11-21 08:44 : [Quote]
Quoted song:

Powered by Django. Hosted on Webfaction
© 2009 - 2010 Piglei. All rights reserved.

请问这是什么意思? Django仅仅是一个web框架吧,仅仅用django就可以搭建博客吗? 像wordpress一样?


是的这是使用django开发的。django是一个网络框架,使用他可以开发很多东西,当然博客只是其中一个很简单的应用。
19# song   said this at 2010-11-21 22:11 : [Quote]
Quoted song:

Powered by Django. Hosted on Webfaction
© 2009 - 2010 Piglei. All rights reserved.

请问这是什么意思? Django仅仅是一个web框架吧,仅仅用django就可以搭建博客吗? 像wordpress一样?

Quoted Admin:

是的这是使用django开发的。django是一个网络框架,使用他可以开发很多东西,当然博客只是其中一个很简单的应用。


了解了,我最近对python很感兴趣,django也很感兴趣,但是不知道怎么入手,大神给点指导好吗?
20# Admin   said this at 2010-11-23 00:35 : [Quote]
Quoted Admin:

是的这是使用django开发的。django是一个网络框架,使用他可以开发很多东西,当然博客只是其中一个很简单的应用。

show all quoted

Quoted song:

了解了,我最近对python很感兴趣,django也很感兴趣,但是不知道怎么入手,大神给点指导好吗?


呃,我也是小菜鸟一个。
要开始的话如果有语言基础,可以从dive into python开始,再看看官网doc。
python基本语法了解差不多可以开始看django。django推荐看django book以及官方文档。
21# 树根   said this at 2010-12-01 02:08 : [Quote]
看了你的mako模板的文章,我初学,总是解决不了mako的中文问题
22# 灰灰   said this at 2010-12-03 14:41 : [Quote]
Quoted Admin:

是的这是使用django开发的。django是一个网络框架,使用他可以开发很多东西,当然博客只是其中一个很简单的应用。

show all quoted

Quoted song:

了解了,我最近对python很感兴趣,django也很感兴趣,但是不知道怎么入手,大神给点指导好吗?


大神 ? 菜B
额 我想到了 dota
23# hef   said this at 2010-12-18 16:18 : [Quote]
Do what you love.
Love what you do.
蛋疼翻译一下: 有点YD
做爱做的事 爱你做的事

over
24# Chang.Jian   said this at 2011-01-15 17:41 : [Quote]
哥的网址链接呢?
25# 比比   said this at 2011-02-13 00:30 : [Quote]
www.bibiyoua.com 比比有啊
www.bibif.com 比比伏时尚创意在线
www.hi772.com 来宾生活网
26# haha   said this at 2011-02-16 20:14 : [Quote]
做的非常不错,还必须要输入中文
27# Chang.Jian   said this at 2011-04-19 13:17 : [Quote]
为什么我的网站 只在首页出现链接。而且还打错字了
两极飞鸟。shit
28# 棉花糖   said this at 2011-04-19 14:30 : [Quote]
Quoted Chang.Jian:

为什么我的网站 只在首页出现链接。而且还打错字了
两极飞鸟。shit


两级
29# Admin   said this at 2011-04-20 00:01 : [Quote]
Quoted Chang.Jian:

为什么我的网站 只在首页出现链接。而且还打错字了
两极飞鸟。shit


可耻的修正鸟...
30# FF   said this at 2011-05-22 11:15 : [Quote]
你好,
我也想在网页中用SyntaxHighlighter做python代码高亮

可我发现 在多个tab 的时候 缩进有错误
显示效果就是 没打tab一样
比如
if a:
pass

pass 应该是相对于if有缩进,但我这儿没缩进。
但你的网页上 是完美显示的,这是为何?
31# Admin   said this at 2011-05-23 09:48 : [Quote]
Quoted FF:

你好,
我也想在网页中用SyntaxHighlighter做python代码高亮

可我发现 在多个tab 的时候 缩进有错误
显示效果就是 没打tab一样
比如
if a:
pass

pass 应该是相对于if有缩进,但我这儿没缩进。
但你的网页上 是完美显示的,这是为何?


你的代码是放在pre标签里面的吗?
最好是在别的地方写好代码,然后复制过来比较,另外不推荐用tab来缩进python代码,最好把tab映射为四个空格,最好,代码应该是这样的格式。
<pre class="brush: python">
if a:
pass
</pre>
32# FF   said this at 2011-05-23 22:35 : [Quote]
代码是放在pre标签中的。

我当时实验过了 四个空格没问题。

可是我写python已经习惯打tab了,
这 如何是好。。。
33# Admin   said this at 2011-05-24 09:29 : [Quote]
Quoted FF:

代码是放在pre标签中的。

我当时实验过了 四个空格没问题。

可是我写python已经习惯打tab了,
这 如何是好。。。


不知道你使用的什么工具来编写python代码,应该可以把tab映射为四个空格的。另外关于使用tab还是空格,pep8里面有这么一段

Tabs or Spaces?

Never mix tabs and spaces.

The most popular way of indenting Python is with spaces only. The
second-most popular way is with tabs only. Code indented with a mixture
of tabs and spaces should be converted to using spaces exclusively. When
invoking the Python command line interpreter with the -t option, it issues
warnings about code that illegally mixes tabs and spaces. When using -tt
these warnings become errors. These options are highly recommended!

For new projects, spaces-only are strongly recommended over tabs. Most
editors have features that make this easy to do.
34# FF   said this at 2011-05-24 23:35 : [Quote]
tab和空格不要混用,我也知道
但是 空格和 tab方面 ,确实 空格 很有优势

我曾多次遇见过这个问题 ,我电脑中vim设置的
tab宽度是 4 ,然后把代码拷贝到其他电脑上编辑,发现tab全变成8了。。。


不过 按一下tab 和四下空格相比 ,还是tab给力啊
35# Admin   said this at 2011-05-25 09:31 : [Quote]
Quoted FF:

tab和空格不要混用,我也知道
但是 空格和 tab方面 ,确实 空格 很有优势

我曾多次遇见过这个问题 ,我电脑中vim设置的
tab宽度是 4 ,然后把代码拷贝到其他电脑上编辑,发现tab全变成8了。。。


不过 按一下tab 和四下空格相比 ,还是tab给力啊


我目前也是用vim啊,而且我也是用tab进行缩进的,不知道是不是你的vim配置有问题呢?
关于缩进应该是这样的吧
set shiftwidth=4
set tabstop=4
set softtabstop=4
set expandtab
set smarttab
set backspace=2
36# FF   said this at 2011-06-02 14:57 : [Quote]
你好,我就是上面咨询你关于代码高亮tab问题的同学。
也是 sanss.me的博主。
关于tab的问题我找到了一个比较好的方法来解决,以后会发出来的。

我看到你的留言了,今晚会加到友情连接的。

我还想问一下,你博客里的留言/回复 是你自己写的还是使用的插件?
我想自己写一个像你这样的留言系统,发现有点难度
37# Admin   said this at 2011-06-04 09:57 : [Quote]
Quoted FF:

你好,我就是上面咨询你关于代码高亮tab问题的同学。
也是 sanss.me的博主。
关于tab的问题我找到了一个比较好的方法来解决,以后会发出来的。

我看到你的留言了,今晚会加到友情连接的。

我还想问一下,你博客里的留言/回复 是你自己写的还是使用的插件?
我想自己写一个像你这样的留言系统,发现有点难度


这个留言/回复系统的确是我自己写的没错,但那是我最开始学习python/django时候的代码了,一定是各种不堪的。建议你还是自己整一个吧,基本就是给每条留言加一个指向自己的外键吧。

另友链已加
Name:  *   Remember me
E-mail:  *  Not public, supported by Gravator
Website:      Not required
Question:
5 + 7 = *
Content: