2018-08-21から1日間の記事一覧

【Python3】ファイル処理

file = open("input.txt", encoding="utf-8") #ファイルを開く s = file.read() #ファイルを読み込む file.close() #ファイルを閉じる print(s) #読み込んだ内容を表示する file = open("output.txt", mode="w", encoding="utf-8") #ファイルを開く file.wri…

【Python3】Windows10 に pycrypto をインストール

pip install pycrypto を行ってみるがエラーになってしまう。 検索してみたらこちらが見つかったが環境が異なるので自分のところで動くようにしてみた。 【参考元】Windows(x64)でPython3.6.0(x64)にPyCryptoを入れるメモ https://qiita.com/walkure/items/0…