ニュース

1. はじめに これまで、Pythonの基礎として変数・条件分岐・繰り返し・関数・各種データ構造などを扱ってきました。今回から少し実用的なテクニックとして、「ファイルの読み書き」について学びましょう。 「プログラムで作ったデータを、ファイルに保存したい」 「テキストファイルに書か ...
It’s simple enough, we just need to open the file in append mode. Opening an existing zip file in write mode will erase the zip, so be careful when you’re using that mode.
はじめに APIキーやデータベースの接続情報といった機密情報をソースコードに直接記述してしまうと、GitHubなどでコードを公開した際に、第三者に情報が漏洩してしまう危険性があります。 今回は、このような機密情報を安全に管理するための定番の手法である「.env ファイル」をPythonで利用 ...
The newly approved Python Enhancement Proposal 751 gives Python a standard lock file format for specifying the dependencies of projects. Here’s the what, why, and when.