Pythonのお勉強 Part30 at TECH
[2ch|▼Menu]
358:デフォルトの名無しさん
08/12/04 12:45:06
>>352
file1
--------
class foo(object):
 CON = [('const%d' % n) for n in xrange(1000)]
--------
file2
--------
from file1 import foo.CON as CON
for n in len(CON):
print 'CON%d = %s' % (n, CON[n])
--------



次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5092日前に更新/206 KB
担当:undef