組み込み関数

組み込み関数

filter()

使い方 filter = filter(function,iterable) functionの条件に合うiterableの要素を返します list1 = filter1 = filter(lambda x:x &gt...
組み込み関数

type()

使い方 type1 = type( obj ) 渡したobjのtypeを返します str1 = 'abc' type1 = type( str1 ) print(type1) #結果 <class ...
組み込み関数

bin()

使い方 str = bin(int) 整数を2進数に変換します先頭には2進数を示す0bが付きます str = bin(7) print(str) #結果 0b111
組み込み関数

round()

使い方 int , float = round( float1 , int1 ) float1 に与えた数字を int1 に与えた桁でまるめます端数処理は偶数まるめですint1は省略すると整数でまるめます print(r...