by
Papasan
—
posted at
2007-07-04 20:05
last modified
2007-07-10 12:29
メモ:
# python Python 2.3.6 (#1, Jun 26 2007, 09:31:23) [GCC 3.3.6 release (Vine Linux 3.3.6-0vl7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> kiriban = ['1000', '1111', '2000', '2222', '3000', '3333'] >>> counter = 1111 >>> if str(counter) in kiriban: ... rc = True ... else: ... rc = False ... >>> rc True >>> counter = 3001 >>> if str(counter) in kiriban: ... rc = True ... else: ... rc = False ... >>> rc False >>>
- http://papasan.org/papablog/294/tbping










































































