| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> other >> Karrigell ru men
 

Karrigell ru men

2008-12-28 07:39:21 编辑來源:互联网 评论
 
本文为【Karrigell 入门】的拼音翻译版
  yuan wen :http://www.devshed.com/c/a/Python/Karrigell-for-Python/
  yin wei python bing bu shi te bie wei web kai fa er sheng , suo yi xian zai hen duo de python shi yong zhe dou zai kai fa neng gou rang python yun xing yu web de kuang jia .Karrigell jiu shi xian zai wei shu zhong duo de python/web kuang jia zhi yi . ben wen jiang dui Karrigell zuo jian yao de jie shao .
  jian jie
  Karrigell shi yi ge gong neng qiang da qie ling huo de python/web kuang jia , wei web kai fa ti gong le duo zhong jie jue fang an . bing qie , hen chong yao de , ta de an zhuang he shi yong dou fei chang de jian dan . ji shi shi python de chu xue zhe , ye bu hui zai shi yong Karrigell de shi hou fan mi hu , bing qie Karrigell ye mei you yin wei jie gou jian dan er xian zhi python de yi xie te xing . ta ti gong le zi ji de web fu wu qi wan cheng gong zuo , dan shi ye fei chang rong yi de he qi ta de web fu wu qi ( li ru apache) jie he gong zuo , suo yi ru guo ni xuan ze le Karrigell, ni reng ran ke yi shi yong zhi qian yi zhi zai shi yong de web fu wu qi .
  zhe pian wen zhang jiang cong Karrigell de an zhuang kai shi shuo qi , jie shao shu ge Karrigell de chong yao te xing .
  an zhuang Karrigell
  shang mian shuo le ,Karrigell de an zhuang yi dian dou bu ma fan . ni yao zuo de di yi bu shi dao SourceForge xia zai zui xin de Karrigell, dang ni xia zai le zip bao hou , jiang qi jie ya suo dao yi ge rong yi zhao dao de mu lu . ran hou zhi jie shuang ji Karrigell.py qi dong Karrigell de nei zhi web fu wu qi . ru guo ni xian zai bing bu xiang ba Karrigell he qi ta de web fu wu qi jie he shi yong , na Karrigell de an zhuang dao ci jiu jie shu le .
  dan ru guo ni xiang yao she zhi ni de web fu wu qi lai he Karrigell jie he , wo men na apache lai ju li zi . wo men xian zai xu yao Karrigell zai apache de hou tai yun xing , lai shi apache jiang xiang guan de qing qiu chuan song gei Karrigell
  yin wei apache yi ban hui yun xing zai 80 duan kou , ni xu yao gei Karrigell she zhi yi ge qi ta de yun xing duan kou . you liang ge fang fa lai da dao zhe ge mu de , qi yi shi shi yong ming ling xing lai wan cheng , huo zhe ke yi gai bian Karrigell de pei zhi wen jian . xian lai kan ru he yong ming ling xing , wo men jiang zai 8080 duan kou yun xing Karrigell.
  C:\Karrigell>Karrigell.py -P 8080
  di er zhong , ni xu yao zhao dao Karrigell.ini, ran hou jia shang zhe me yi ju
  port=8080
  xian zai ni xu yao pei zhi apache jiang you guan de qing qiu zhuan xiang dao Karrigell. yi ban lai shuo , ni xi wang apache ke yi chu li ren he de jing tai wen jian qing qiu , bi ru php. ni ke yi he apache gong xiang tong yi ge lu jing , ye ke yi she li dan du de lu jing .. ran hou she zhi na xie wen jian xu yao apache ba qing qiu chuan di gei Karrigell, ni xu yao tian jia xia mian de nei rong dao apache de httpd.conf wen jian .
  RewriteEngine On
  RewriteRule ^/(.*).py(.*) 1.py$2]http://localhost:8080/$1.py$2 [L,P]
  RewriteRule ^/(.*).ks(.*) 1.ks$2]http://localhost:8080/$1.ks$2 [L,P]
  RewriteRule ^/(.*).hip(.*) 1.hip$2]http://localhost:8080/$1.hip$2 [L,P]
  RewriteRule ^/(.*).pih(.*) 1.pih$2]http://localhost:8080/$1.pih$2 [P]
  ru guo ni xiang , ni ke yi she zhi quan bu de te ding wen jian qing qiu dou zhuan gei Karrigell. zai ben wen zhong , wo men jiang shi yong testarea zhe ge lu jing , suo yi wo men zhe yang she zhi httpd.conf:
  RewriteEngine On
  RewriteRule ^/testarea(.*) 1]http://localhost:8080/testarea$1 [P]
  dang ran ni ke yi zhe yang :
  RewriteEngine On
  RewriteRule ^/testarea/(.*).py(.*)
1.py$2]http://localhost:8080/testarea/$1.py$2 [L,P]
  RewriteRule ^/testarea/(.*).ks(.*)
1.ks$2]http://localhost:8080/testarea/$1.ks$2 [L,P]
  RewriteRule ^/testarea/(.*).hip(.*)
1.hip$2]http://localhost:8080/testarea/$1.hip$2 [L,P]
  RewriteRule ^/testarea/(.*).pih(.*)
1.pih$2]http://localhost:8080/testarea/$1.pih$2 [P]
  Scripts he Services
  Python scripts he Karrigell services jiang shi python kai fa zhe shi yong Karrigell zui rong yi jie chu de liang ge gai nian .Python scripts jiu shi python de jiao ben , kai fa zhe shi yong print yu ju shu chu dao yong hu liu lan qi de nei rong . ru guo ni huan bu ming bai , jian li yi ge testarea mu lu , ran hou wo men jiang kai shi chuang jian wo men de di yi ge Python scripts. xin jian yi ge wen jian test.py:
  print "<center>"
  print "Hello!"
  print "<br /><br />"
  print "Karrigell is configured and working."
  print "</center>"
  zai liu lan qi zhong da kai zhe ge wen jian , ru guo zhi qian ni de Karrigell dou zheng que she zhi , na ni jiang hui kan dao shu chu de nei rong .
  Python scripts ye ke yi rong yi de shi yong biao dan . rang wo men zai lai chuang jian yi ge jian dan de ye mian , yong hu ke yi zai zhe ge ye mian shu ru zi ji de ming zi . xin jian wen jian askname.py:
  if QUERY.has_key ( "name" ):
   print "Your name is", _name + "."
  else:
   print "What is your name?<br />"
   print "<form>"
   print "<input type='text' name='name' /><br />"
   print "<input type='submit' value='Proceed' />"
   print "</form>"
  Karrigell services de bian xie he Python scripts lei si . zhe ge de zuo yong shi yang she qing qiu dao yong hu zhi ding de fang fa . zhi ding fang fa de ming zi tong guo gen zai Karrigell services hou mian jin xing chuan di . bi ru , xia mian zhe ge url jiang hui tiao yong test zhe ge fang fa
http://localhost/testarea/test.ks/test
  rang wo men shi ji bian xie xia zhe ge li zi
  def index():
   print "Index function."
  def test():
   print "Test function."
  ru guo bu chuan di fang fa ming er shi yong zhe xie Python scripts, ni de cheng xu hui mo ren zhi xing index fang fa . ru guo chuan di le fang fa ming test, na test fang fa jiu hui bei tiao yong . tiao yong yi ge bu cun zai de fang fa hui pao chu yi chang .
  shi yong Karrigell services lai chu li biao dan chuan di de shu ju ye hen jian dan . rang wo men lai chuang jian yi ge ascname.ks
  def index():
   print "What is your name?<br />"
   print "<form action='nameSubmit'>"
   print "<input type='text' name='name' /><br />"
   print "<input type='submit' value='Proceed' />"
   print "</form>"
  def nameSubmit ( name ):
   print "Your name is", name + "."
  dang ran , yuan xu wai bu gong kai fang wen ni de fang fa shi yi jian hen wei xian de shi qing , wei le zu zhi bu yuan xu de yong hu fang wen ni de fang fa , an zhao xia mian suo shu gei ni de fang fa jia qian zhui :
  def _private():
   pass
  chang shi fang wen _private fang fa jiang hui pao chu yi chang .
  shi yong HIP
  zai askname.py, you yi jian shi qing zhi de zhu yi , zhe ge dai ma ge xing  jie ou rint yu ju . ru guo ke yi bu shi yong print er zhi jie shu chu , na jiang hui shi yi jian duo me hao de shi qing . xing yun de shi ,Karrigell ti gong le zhe yang de gong neng . zhe bei cheng wei HTML Inside Python, zhe jiang qing chu suo you tao yan de print yu ju . bing qie cong askname.py dao TML Inside Python de zhuan huan ye fei chang rong yi . wo men zhi shi xu yao yi zou na xie print yu ju . shan chu askname.py li de print bing jiang wen jian chong ming ming wei askname.hip
  f QUERY.has_key ( "name" ):
   "Your name is", _name + "."
  else:
   "What is your name?<br />"
   "<form method='POST'>"
   "<input type='text' name='name' /><br />"
   "<input type='submit' value='Proceed' />"
   "</form>"
  zhe jiu shi HTML Inside Python.Karrigell jiang hui jian cha ni de wen jian bing zi dong zai xu yao de di fang tian jia print.HTML Inside Python shi Karrigell jian dan yi xue de yi ge you li zheng ming .
  Python Inside HTML
  Karrigell ti gong le HTML
  Inside Python, na zi ran de , ye hui ti gong Python Inside HTML. he yi ban de zuo fa yi yang , jiang python yu ju xie zai te shu de biao ji li , ran hou ba zui zhong jie guo fa song dao yong hu de liu lan qi . rang wo men lai chuang jian yi ge jian dan de shi li ,random.pih
  <% import random %>
  Random number: <b><% print random.random() %></b>
  zheng ru ni shuo kan dao de ,Python Inside HTML de gai nian ru ci de jian dan . er qi shi , dai ma kuai ke yi geng jia de jian dan :
  <%= random.random() %>
  dan shi , ru guo chu li geng fu duo de luo ji , bi ru chu li biao dan shu ju ? biao dan shu ju ke yi xiang zai Python scripts zhong bei chu li na yang bei chu li . zhe shi you yi ge askname.py de fu zhi pin askname.pih
  <% if QUERY.has_key ( "name" ): %>
   Your name is <%= _name %>.
  <% end %>
  <% else: %>
   What is your name?<br />
   <form method='POST'>
   <input type='text' name='name' /><br />
   <input type='submit' value='Proceed' />
   </form>
  <% end %>
  qing zhu yi <% end %> de shi yong . zhe jiang biao shi dai ma kuai de jie yi , jiu xiang shang mian wo men de tiao jian yu ju de suo jin yi yang . ling yi ge ke xuan ze de ban fa shi shi yong indent biao qian , zhe ge ye bei yong lai biao shi dai ma suo jin .
  <indent>
  <% if QUERY.has_key ( "name" ): %>
   Your name is <%= _name %>.
  <% else: %>
   What is your name?<br />
   <form method='POST'>
   <input type='text' name='name' /><br />
   <input type='submit' value='Proceed' />
   </form>
  </indent>
  geng duo de te xing
  wo men lai zhe yang shi yi xia , biao qian ke yi tong guo Python scripts zhe yang shi yong ,tagtest.py
  rom HTMLTags import *
  print CENTER ( B ( "Test." ) )
  session tong yang ke yi zai Karrigell bei chu li , bing qie Karrigell huan ti gong le yi ge liang hao de jie jin yu mian xiang dui xiang de session ji zhi . rang wo men chuang jian yi duan jian dan de dai ma lai shi fan Karrigell zhong de session. hui dao wo men de di yi ge li zi , yong hu jiang hui huo de yi ge xing yun shu zi . ru guo yong hu shua xin ye mian , gai shu zi reng ran cun zai , yin wei zhe ge shu zi jiang bei bao cun zai sessin zhong . dang ran , yong hu jiang ke yi xuan ze chong xin huo qu xin de xing yun shu zi , zhe tong guo guan bi sessin lai wan cheng . chuang li yi ge ming wei luckynumber.ks de Karrigell services, shu ru xia mian de dai ma :
  import random
  user = Session()
  def index():
   if not "luckyNumber" in dir ( user ):
   user.luckyNumber = random.randint ( 0, 20 )
   print "Your lucky number:", user.luckyNumber
   print "<br /><br />"
   print "<a href='reset'>Reset Lucky Number</a>"
  def reset():
   user.close()
   print "Your lucky number has been reset."
   print "<br /><br />"
   print "<a href='index'>Back</a>"
  jie lun
  Karrigell ti gong le si zhong fang fa lai jin xing web kai fang ,Python scripts,Karrigell services,HTML Inside Python he Python Inside HTML, mei zhong fang fa dou you qi te dian , dan shi ta men que dou you yi ge gong tong de you dian : shi yong jian dan .Karrigell jiang web kai fa bian cheng le yi jian you ya , jian dan de shi qing . wu lun shi dan du shi yong Karrigell huan shi he apache jie he shi yong , dou shi ling ren chi jing de jian dan . yin wei , wu lun shi dui yu chu xue zhe , huan shi lao shou ,Karrigell dou shi bu cuo de xuan ze .【原文】【汉音对照
 
 
 
 62.*.*.* 发表于2011-07-25 13:26:06
  No question this is the place to get this info, tahkns y'all.
  回复
  
  
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
yuan wen :http://www.devshed.com/c/a/Python/Karrigell-for-Python/ yin wei python bing bu shi te bie wei web kai fa er sheng , suo yi xian zai hen duo de python shi yong zhe dou zai kai fa neng gou rang python yun xing yu web de kuang jia .Karrigell jiu shi xian zai wei shu zhong duo de python/web kuang jia zhi yi . ben wen jiang dui Karrigell zuo jian yao de jie shao . jian jie Karrigell shi yi ge gong neng qiang da qie ling huo de python/web kuang jia , wei web kai fa ti gong le duo zhong jie jue fang an . bing qie , hen chong yao de , ta de an zhuang he shi yong dou fei chang de jian dan . ji shi shi python de chu xue zhe , ye bu hui zai shi yong Karrigell de shi hou fan mi hu , bing qie Karrigell ye mei you yin wei jie gou jian dan er xian zhi python de yi xie te xing . ta ti gong le zi ji de web fu wu qi wan cheng gong zuo , dan shi ye fei chang rong yi de he qi ta de web fu wu qi ( li ru apache) jie he gong zuo , suo yi ru guo ni xuan ze le Karrigell, ni reng ran ke yi shi yong zhi qian yi zhi zai shi yong de web fu wu qi . zhe pian wen zhang jiang cong Karrigell de an zhuang kai shi shuo qi , jie shao shu ge Karrigell de chong yao te xing . an zhuang Karrigell shang mian shuo le ,Karrigell de an zhuang yi dian dou bu ma fan . ni yao zuo de di yi bu shi dao SourceForge xia zai zui xin de Karrigell, dang ni xia zai le zip bao hou , jiang qi jie ya suo dao yi ge rong yi zhao dao de mu lu . ran hou zhi jie shuang ji Karrigell.py qi dong Karrigell de nei zhi web fu wu qi . ru guo ni xian zai bing bu xiang ba Karrigell he qi ta de web fu wu qi jie he shi yong , na Karrigell de an zhuang dao ci jiu jie shu le . dan ru guo ni xiang yao she zhi ni de web fu wu qi lai he Karrigell jie he , wo men na apache lai ju li zi . wo men xian zai xu yao Karrigell zai apache de hou tai yun xing , lai shi apache jiang xiang guan de qing qiu chuan song gei Karrigell yin wei apache yi ban hui yun xing zai 80 duan kou , ni xu yao gei Karrigell she zhi yi ge qi ta de yun xing duan kou . you liang ge fang fa lai da dao zhe ge mu de , qi yi shi shi yong ming ling xing lai wan cheng , huo zhe ke yi gai bian Karrigell de pei zhi wen jian . xian lai kan ru he yong ming ling xing , wo men jiang zai 8080 duan kou yun xing Karrigell. C:\Karrigell>Karrigell.py -P 8080 di er zhong , ni xu yao zhao dao Karrigell.ini, ran hou jia shang zhe me yi ju port=8080 xian zai ni xu yao pei zhi apache jiang you guan de qing qiu zhuan xiang dao Karrigell. yi ban lai shuo , ni xi wang apache ke yi chu li ren he de jing tai wen jian qing qiu , bi ru php. ni ke yi he apache gong xiang tong yi ge lu jing , ye ke yi she li dan du de lu jing .. ran hou she zhi na xie wen jian xu yao apache ba qing qiu chuan di gei Karrigell, ni xu yao tian jia xia mian de nei rong dao apache de httpd.conf wen jian . RewriteEngine On RewriteRule ^/(.*).py(.*) [url=http://localhost:8080/$1.py$2]http://localhost:8080/$1.py$2[/url] [L,P] RewriteRule ^/(.*).ks(.*) [url=http://localhost:8080/$1.ks$2]http://localhost:8080/$1.ks$2[/url] [L,P] RewriteRule ^/(.*).hip(.*) [url=http://localhost:8080/$1.hip$2]http://localhost:8080/$1.hip$2[/url] [L,P] RewriteRule ^/(.*).pih(.*) [url=http://localhost:8080/$1.pih$2]http://localhost:8080/$1.pih$2[/url] [P] ru guo ni xiang , ni ke yi she zhi quan bu de te ding wen jian qing qiu dou zhuan gei Karrigell. zai ben wen zhong , wo men jiang shi yong testarea zhe ge lu jing , suo yi wo men zhe yang she zhi httpd.conf: RewriteEngine On RewriteRule ^/testarea(.*) [url=http://localhost:8080/testarea$1]http://localhost:8080/testarea$1[/url] [P] dang ran ni ke yi zhe yang : RewriteEngine On RewriteRule ^/testarea/(.*).py(.*) [url=http://localhost:8080/testarea/$1.py$2]http://localhost:8080/testarea/$1.py$2[/url] [L,P] RewriteRule ^/testarea/(.*).ks(.*) [url=http://localhost:8080/testarea/$1.ks$2]http://localhost:8080/testarea/$1.ks$2[/url] [L,P] RewriteRule ^/testarea/(.*).hip(.*) [url=http://localhost:8080/testarea/$1.hip$2]http://localhost:8080/testarea/$1.hip$2[/url] [L,P] RewriteRule ^/testarea/(.*).pih(.*) [url=http://localhost:8080/testarea/$1.pih$2]http://localhost:8080/testarea/$1.pih$2[/url] [P] Scripts he Services Python scripts he Karrigell services jiang shi python kai fa zhe shi yong Karrigell zui rong yi jie chu de liang ge gai nian .Python scripts jiu shi python de jiao ben , kai fa zhe shi yong print yu ju shu chu dao yong hu liu lan qi de nei rong . ru guo ni huan bu ming bai , jian li yi ge testarea mu lu , ran hou wo men jiang kai shi chuang jian wo men de di yi ge Python scripts. xin jian yi ge wen jian test.py: print "<center>" print "Hello!" print "<br /><br />" print "Karrigell is configured and working." print "</center>" zai liu lan qi zhong da kai zhe ge wen jian , ru guo zhi qian ni de Karrigell dou zheng que she zhi , na ni jiang hui kan dao shu chu de nei rong . Python scripts ye ke yi rong yi de shi yong biao dan . rang wo men zai lai chuang jian yi ge jian dan de ye mian , yong hu ke yi zai zhe ge ye mian shu ru zi ji de ming zi . xin jian wen jian askname.py: if QUERY.has_key ( "name" ): print "Your name is", _name + "." else: print "What is your name?<br />" print "<form>" print "<input type='text' name='name' /><br />" print "<input type='submit' value='Proceed' />" print "</form>" Karrigell services de bian xie he Python scripts lei si . zhe ge de zuo yong shi yang she qing qiu dao yong hu zhi ding de fang fa . zhi ding fang fa de ming zi tong guo gen zai Karrigell services hou mian jin xing chuan di . bi ru , xia mian zhe ge url jiang hui tiao yong test zhe ge fang fa [url=http://localhost/testarea/test.ks/test]http://localhost/testarea/test.ks/test[/url] rang wo men shi ji bian xie xia zhe ge li zi def index(): print "Index function." def test(): print "Test function." ru guo bu chuan di fang fa ming er shi yong zhe xie Python scripts, ni de cheng xu hui mo ren zhi xing index fang fa . ru guo chuan di le fang fa ming test, na test fang fa jiu hui bei tiao yong . tiao yong yi ge bu cun zai de fang fa hui pao chu yi chang . shi yong Karrigell services lai chu li biao dan chuan di de shu ju ye hen jian dan . rang wo men lai chuang jian yi ge ascname.ks def index(): print "What is your name?<br />" print "<form action='nameSubmit'>" print "<input type='text' name='name' /><br />" print "<input type='submit' value='Proceed' />" print "</form>" def nameSubmit ( name ): print "Your name is", name + "." dang ran , yuan xu wai bu gong kai fang wen ni de fang fa shi yi jian hen wei xian de shi qing , wei le zu zhi bu yuan xu de yong hu fang wen ni de fang fa , an zhao xia mian suo shu gei ni de fang fa jia qian zhui : def _private(): pass chang shi fang wen _private fang fa jiang hui pao chu yi chang . shi yong HIP zai askname.py, you yi jian shi qing zhi de zhu yi , zhe ge dai ma ge xing  jie ou rint yu ju . ru guo ke yi bu shi yong print er zhi jie shu chu , na jiang hui shi yi jian duo me hao de shi qing . xing yun de shi ,Karrigell ti gong le zhe yang de gong neng . zhe bei cheng wei HTML Inside Python, zhe jiang qing chu suo you tao yan de print yu ju . bing qie cong askname.py dao TML Inside Python de zhuan huan ye fei chang rong yi . wo men zhi shi xu yao yi zou na xie print yu ju . shan chu askname.py li de print bing jiang wen jian chong ming ming wei askname.hip f QUERY.has_key ( "name" ): "Your name is", _name + "." else: "What is your name?<br />" "<form method='POST'>" "<input type='text' name='name' /><br />" "<input type='submit' value='Proceed' />" "</form>" zhe jiu shi HTML Inside Python.Karrigell jiang hui jian cha ni de wen jian bing zi dong zai xu yao de di fang tian jia print.HTML Inside Python shi Karrigell jian dan yi xue de yi ge you li zheng ming . Python Inside HTML Karrigell ti gong le HTML Inside Python, na zi ran de , ye hui ti gong Python Inside HTML. he yi ban de zuo fa yi yang , jiang python yu ju xie zai te shu de biao ji li , ran hou ba zui zhong jie guo fa song dao yong hu de liu lan qi . rang wo men lai chuang jian yi ge jian dan de shi li ,random.pih <% import random %> Random number: <b><% print random.random() %></b> zheng ru ni shuo kan dao de ,Python Inside HTML de gai nian ru ci de jian dan . er qi shi , dai ma kuai ke yi geng jia de jian dan : <%= random.random() %> dan shi , ru guo chu li geng fu duo de luo ji , bi ru chu li biao dan shu ju ? biao dan shu ju ke yi xiang zai Python scripts zhong bei chu li na yang bei chu li . zhe shi you yi ge askname.py de fu zhi pin askname.pih <% if QUERY.has_key ( "name" ): %> Your name is <%= _name %>. <% end %> <% else: %> What is your name?<br /> <form method='POST'> <input type='text' name='name' /><br /> <input type='submit' value='Proceed' /> </form> <% end %> qing zhu yi <% end %> de shi yong . zhe jiang biao shi dai ma kuai de jie yi , jiu xiang shang mian wo men de tiao jian yu ju de suo jin yi yang . ling yi ge ke xuan ze de ban fa shi shi yong indent biao qian , zhe ge ye bei yong lai biao shi dai ma suo jin . <indent> <% if QUERY.has_key ( "name" ): %> Your name is <%= _name %>. <% else: %> What is your name?<br /> <form method='POST'> <input type='text' name='name' /><br /> <input type='submit' value='Proceed' /> </form> </indent> geng duo de te xing wo men lai zhe yang shi yi xia , biao qian ke yi tong guo Python scripts zhe yang shi yong ,tagtest.py rom HTMLTags import * print CENTER ( B ( "Test." ) ) session tong yang ke yi zai Karrigell bei chu li , bing qie Karrigell huan ti gong le yi ge liang hao de jie jin yu mian xiang dui xiang de session ji zhi . rang wo men chuang jian yi duan jian dan de dai ma lai shi fan Karrigell zhong de session. hui dao wo men de di yi ge li zi , yong hu jiang hui huo de yi ge xing yun shu zi . ru guo yong hu shua xin ye mian , gai shu zi reng ran cun zai , yin wei zhe ge shu zi jiang bei bao cun zai sessin zhong . dang ran , yong hu jiang ke yi xuan ze chong xin huo qu xin de xing yun shu zi , zhe tong guo guan bi sessin lai wan cheng . chuang li yi ge ming wei luckynumber.ks de Karrigell services, shu ru xia mian de dai ma : import random user = Session() def index(): if not "luckyNumber" in dir ( user ): user.luckyNumber = random.randint ( 0, 20 ) print "Your lucky number:", user.luckyNumber print "<br /><br />" print "<a href='reset'>Reset Lucky Number</a>" def reset(): user.close() print "Your lucky number has been reset." print "<br /><br />" print "<a href='index'>Back</a>" jie lun Karrigell ti gong le si zhong fang fa lai jin xing web kai fang ,Python scripts,Karrigell services,HTML Inside Python he Python Inside HTML, mei zhong fang fa dou you qi te dian , dan shi ta men que dou you yi ge gong tong de you dian : shi yong jian dan .Karrigell jiang web kai fa bian cheng le yi jian you ya , jian dan de shi qing . wu lun shi dan du shi yong Karrigell huan shi he apache jie he shi yong , dou shi ling ren chi jing de jian dan . yin wei , wu lun shi dui yu chu xue zhe , huan shi lao shou ,Karrigell dou shi bu cuo de xuan ze .
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
我们约会吧
漂亮白皙的模特
好纯好美的女生
靓丽的网络美女
痞子的甘南日记
疑是银河落九天
雪域坝上四——纯美色
冬日恋歌——西城杨柳弄轻柔
 
>>返回首页<<
 为你推荐
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
©2005- 王朝网络 版权所有