LoginSignup
2
1

More than 5 years have passed since last update.

自分用勉強メモ1日目

Posted at

メモ,日記程度につらつらと書いていく.

MBA の Python 環境構築で躓いた

[MacOS Mojave]pyenvでpythonのインストールがzlibエラーで失敗した時の対応

pyenv の使い方とかをさくっと調べた.

Python 2系と3系の共存

CTFに挑戦

2 Easy Cipher

これから少しづつ取り組んでみる.

シーザー暗号

Python で ROT13 (シーザー暗号) を書いてみる

pythonで実装してみた.
標準で実装されているので記述が楽.

caesar_cipher.py

import codecs
line = input('シーザー暗号を解く文字列を入力 -> ')
answer_str = codecs.decode(line, 'rot13')
print('answer: {}'.format(answer_str))

実行結果は以下の通り.

$ python caesar_cipher.py 
シーザー暗号を解く文字列を入力 -> Guvf vf n grfg.
answer: This is a test.
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1