【python3】簡単な並列処理の書き方
![Thumbnail of post image 145](https://cttr.jp/wp/wp-content/uploads/2017/09/00000007-150x150.png)
pythonで並列処理をした時のメモ。
python 3.7.1にて動作確認
import randomfrom hashids import Hashids # pip install hashidsfrom co ...【python3】任意の文字数でhash値を生成する
![Thumbnail of post image 032](https://cttr.jp/wp/wp-content/uploads/2017/09/00000007-150x150.png)
pythonでhash値取ろうとすると長すぎて要件に合わないなんてことがあった。
指定文字数のhash値が欲しい…
そんな時に作ったやつを残しておく。
python 3.7.1にて動作確認
【Python】CloudWatch logsをlocalファイルに保存する方法
![Thumbnail of post image 151](https://cttr.jp/wp/wp-content/uploads/2017/09/aws-thum-150x150.png)
CloudWatchのログってS3にエクスポートできたり、cliでいろいろできるけどやっぱりlogファイルとして欲しいときに面倒なのでそれをPythonに頑張ってもらうやつです。
手順
①.pyと同階層にlogsフ ...