My favorites | Sign in
Logo
                
Search
for
Updated Yesterday (16 hours ago) by gasolin
Labels: Traditional
EmbededInPython  
python 中嵌入中文程式

嵌入 Python 程式中執行 : zh_exec

zhpy (>0.5 版) 提供一個在 Python 程式中嵌入中文程式執行的函式 "zh_exec", 可以用如同 python exec 函式的用法使用:

$ python
>>> import zhpy
>>> zhpy.zh_exec("print 'hello'")
hello
>>> zhpy.zh_exec("印出 '哈囉'")
哈囉
>>> 

Sign in to add a comment
Hosted by Google Code