こんにちは、けんにぃです。ナビタイムジャパンで公共交通の時刻表を使ったサービス開発やリリースフローの改善を担当しています。 今回は Python でコマンドラインツールを作るときに役立つライブラリとして Rich というものをご紹介したいと思います。
Pythonスクリプトを実行した際、ターミナルに表示されるテキストがすべて同じ色だと、どこが重要な警告で、どこがエラーなのか、一目で分かりにくいですよね。 print()関数の出力を色分けできれば、ログの視認性は劇的に向上します。今回は、この ...
One thing to note here is you can also use double triple quotes for multiline strings(""" """ like this). Do you remember I said(ok wrote) there is something called unassigned strings in this post?
This extension is inspired by "Python Quick Print". "Python Quick Print" can quickly print out variables like print(f"==>> a: {a}") on the terminal by using keyboard shortcut Ctrl+Shift+L, while this ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する