Weitere ähnliche Inhalte
Ähnlich wie BPStudy#54 そろそろPython3 (20)
Mehr von Atsushi Odagiri (20)
BPStudy#54 そろそろPython3
- 50. len(zip((1,2,3), ('a', 'b', 'c')))
3系だとNG!
やりたければlistコンストラクタを明示的に呼び出す
len(list(zip((1,2,3), ('a', 'b', 'c'))))
- 58. 要するに
3系のbytesは
2系のstrと
互換ではない