翻訳と辞書
Words near each other
・ Spyborgs
・ Spybot
・ Spybot worm
・ Spybot – Search & Destroy
・ SpyBouncer
・ SpyBoy
・ Spyboy (album)
・ SpyBoy (disambiguation)
・ Spybreak!
・ SpyCat
・ Spycat
・ Spycatcher
・ Spycatcher (band)
・ Spycatcher (disambiguation)
・ Spycatcher (TV series)
Spyce
・ Spychowo
・ Spychowski Piec
・ Spychówko
・ Spycimierz
・ Spycimierz-Kolonia
・ Spycker
・ Spyckerscher See and Mittelsee Nature Reserve
・ Spyck–Welle train ferry
・ Spycraft
・ Spydeberg
・ Spydeberg Station
・ SPYDER
・ Spyder
・ Spyder (comics)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Spyce : ウィキペディア英語版
Spyce
Spyce is technology similar to PHP that can be used to embed Python code into webpages. Spyce is free software, distributed under a BSD-style licence, with some additional restrictions about documentation notices.〔(Spyce - Python Server Pages (PSP) )〕
==Common Spyce embedding methods==

Since Python uses indentation to determine the beginning and end of a block, Spyce includes several ways to embed Python code. Shown below are the three most common ways. Spyce supports ASP/JSP-style delimiters (<% and %>) as well as double braces ( and )
1. Python 'chunks' (multiple Python statements with traditional indentation):

It's \
from time import asctime, localtime
print asctime(localtime())
right now!

or

It's <%\
from time import asctime, localtime
print asctime(localtime())
%> right now!

2. Individual statements within delimiters (indentation not required):

}

or

<% for x in xrange(3): %>

3. Expressions evaluation
I am = 5
*3
years old.

or
I am <%= 5
*3 %> years old.

The techniques above can be freely mixed and embedded in any HTML document.
Any legal Python code can be embedded and any Python module can be imported, which makes it especially suited for writing very robust applications (using exception handling and unit testing single modules individually).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Spyce」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.