Tips and memo

2016年3月15日火曜日

静的ルーティング_WHR-HP-G300N

›
yamaha NVR500 WHR-HP-G300N WHR-HP-G300N インターネット側アドレス:192.168.aaa.bbb デフォルトゲートウェイ/DNSアドレス:192.168.aaa.1 LAN側 192.168.ccc.1 セキュリティ フ...
2014年8月8日金曜日

javascript:switch-caseで不等号

›
switch-caseで不等号による条件分岐。 var answer=prompt("How old are you?") switch(true){     case answer<20:         console.log("...
2014年7月16日水曜日

python: Dictionary .item()

›
x = {"a": "apple","b": "bee","c": "cat"} print x.items() >>> [('...
2014年7月11日金曜日

python: lambda

›
my_list=range(10) print filter(lambda x:x%2==0,my_list) [0, 2, 4, 6, 8]
2014年7月10日木曜日

python: list slicing

›
lst = [i ** 3 for i in range(1, 101)] print lst[2:51:2]

python: list generator

›
lst = [x for x in range(100) if x % 3 == 0] print lst [0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, ...
2014年7月9日水曜日

python : for x not in list/text

›
for x not in [list] for x not in "text"
›
ホーム
ウェブ バージョンを表示
Powered by Blogger.