tw.bbs.comp.lang.python
  Home FAQ Contact Sign in
tw.bbs.comp.lang.python only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
tw.bbs.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  [問題] 超級笨的笨問題         


Author:
Date: May 2, 2008 22:14

我今天剛接觸 python
請大家多多指教

在前面的某篇教學文件中
http://www.freebsd.org.hk/html/python/tut_tw/tut.html
抱歉我不會縮網址

裡面寫到

如同在C語言一樣,字串是有標記(subscript(index))的,第一個字元的標記(subscript(index))就是0。在Python中沒有另外一個字元character資料型態,一個字元就是一個長度為 1的字串。就像是在Icon語言一樣,字串是可以用其subscript(index)來切出( slice notation )其中的一部份的,其語法為 ""。
>>> word[4]
'A'
>>> word[0:2]
'He'
>>> word[2:4]
'lp'

不過 我在打 word[4]字串時 出現
>>> word[4]

Traceback (most recent call last):
File "", line 1, in
word[4]
NameError: name 'word' is not definedx
Show full article (1.16Kb)
no comments
  XYZ         


Author: xyz
Date: May 2, 2008 14:49

XFILES
no comments
  XYZ         


Author: xyz
Date: May 2, 2008 14:49

XFILES
no comments
  XYZ         


Author: xyz
Date: May 2, 2008 06:03

XFILES
no comments
  XYZ         


Author: xyz
Date: May 2, 2008 06:03

XFILES
no comments
  [問題] 安裝 web framework 非得需要root權限嗎?         


Author: huggie
Date: May 2, 2008 04:29

有人安裝過 django 或者是 turbogears 然後不用 root 權限的嗎? 剛跟
一個 web hosting 公司的 tech support 詢問,他們公司有支援 Python,
但卻沒有 framework,(倒是有 Ruby 跟 Rails (#‵′) ),他說但使用者
可以自己裝,說有看過 client 自己安裝起來使用過。但看 Django 安裝的
instruction 需要 sudo 呀?!

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.129.160.62
no comments