{"id":30776,"date":"2022-07-24T11:43:47","date_gmt":"2022-07-24T11:43:47","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30776"},"modified":"2022-12-23T05:48:08","modified_gmt":"2022-12-23T05:48:08","slug":"python-tutorials-files-operations","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/python-tutorials-files-operations\/","title":{"rendered":"Python Tutorials: Files Operations"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Python File Operations<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"1094\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations.png\" alt=\"\" class=\"wp-image-31574\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations.png 1400w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-300x234.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-1024x800.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-768x600.png 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Python &#8211; Working with files<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"403\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-1024x403.png\" alt=\"\" class=\"wp-image-31585\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-1024x403.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-300x118.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-768x302.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-1536x604.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-working-with-files-2048x806.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Python File Operations: Modes<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"553\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/image-13.png\" alt=\"\" class=\"wp-image-31583\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/image-13.png 585w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/image-13-300x284.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"417\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-modes.png\" alt=\"\" class=\"wp-image-31579\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-modes.png 729w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-modes-300x172.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Python File Operations: Writing a file<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"673\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-writing-a-file.jpg\" alt=\"\" class=\"wp-image-31581\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-writing-a-file.jpg 931w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-writing-a-file-300x217.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/10\/python-file-operations-writing-a-file-768x555.jpg 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Python File Operations: CRUD<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/20d4e1dac83ac2dec7630de86326cb4a.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Python File Operations Python &#8211; Working with files Python File Operations: Modes Python File Operations: Writing a file Python File Operations: CRUD<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-30776","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30776"}],"version-history":[{"count":9,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30776\/revisions"}],"predecessor-version":[{"id":31586,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30776\/revisions\/31586"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}