Home > python > 今日のPythonメモ

今日のPythonメモ

  • 2009-08-26 (水) 0:01
  • python

1.多次元配列の初期化


hoge = [[0 for j in range(10)] for i in range(5)]

hoge[4][9] = 1

2.intersect


a = [1, 2, 3, 4, 5]
b = [2, 6, 4, 8]

c = list(set(a) & set(b))

以上

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://red-treasure.com/report/wp-trackback.php?p=499
Listed below are links to weblogs that reference
今日のPythonメモ from コスミー報告書[社外秘]

Home > python > 今日のPythonメモ

Search
Feeds
Meta
 合計:008045
 今日:0044 昨日:0112

Return to page top