Deep LearningstringのTFRecordを作る時にTypeError 猫の画像とラベルを含んだTFRecordを作ろうとして表題のエラー。 TypeError: 'cat' has type str, but expected one of: bytes 使ったコードは公...2020.09.28Deep Learning
AtCoderAtCoder Beginner Contest 179の感想 ABC179に参加した。 A - Plural Form やるだけ。 Pythonは足し算みたいに文字列を扱えるので楽ちん。 s = input() print(s + 's') if s != ...2020.09.22AtCoder
LinuxSSHでエラー kex_exchange_identification: read: Connection reset by pee クライアントの固定IPを変えた後にリモートサーバーにSSHしたら表題のエラー。 kex_exchange_identification: read: Connection reset by pee ファイアウォール(U...2020.09.152020.10.16Linux
AtCoderAtCoder Beginner Contest 178の感想 ABC178に参加した。 A - Not 0を1、1を0にする。 1-xを計算するか、1と排他的論理和 1^x を取ればOK。 x = int(input()) ans = 1 - x print(ans...2020.09.142020.09.17AtCoder
PythonPythonのitertoolsで順列や組合せを重複あり・なしで全列挙する 順列や組合せを求めたいときに、ネストしたループを組むと可読性が低いしネストの回数が変わるとコードの保守も面倒くさい。 itertoolsを使えば、読みやすいコードで全列挙を簡単にしてくれる。 組合せイテレータは...2020.09.10Python