{"id":6082,"date":"2026-01-04T17:00:01","date_gmt":"2026-01-04T13:30:01","guid":{"rendered":"https:\/\/parmin.cloud\/blog\/?p=6082"},"modified":"2026-01-04T17:00:01","modified_gmt":"2026-01-04T13:30:01","slug":"%da%86%da%af%d9%88%d9%86%d9%87-%d8%af%d8%b1-python-3-%d8%b1%d8%b4%d8%aa%d9%87%d9%87%d8%a7-%d8%b1%d8%a7-%d8%a8%d9%87-%d8%b9%d8%af%d8%af-%d8%b5%d8%ad%db%8c%d8%ad-%d8%aa%d8%a8%d8%af%db%8c%d9%84","status":"publish","type":"post","link":"https:\/\/parmin.cloud\/blog\/%da%86%da%af%d9%88%d9%86%d9%87-%d8%af%d8%b1-python-3-%d8%b1%d8%b4%d8%aa%d9%87%d9%87%d8%a7-%d8%b1%d8%a7-%d8%a8%d9%87-%d8%b9%d8%af%d8%af-%d8%b5%d8%ad%db%8c%d8%ad-%d8%aa%d8%a8%d8%af%db%8c%d9%84\/","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647 \u062f\u0631 Python 3 \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u0645\u061f"},"content":{"rendered":"<p>\u0631\u0634\u062a\u0647\u200c\u0647\u0627 (strings) \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u062f <code>int()<\/code> \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0631\u0634\u062a\u0647 \u0634\u0645\u0627 \u0627\u0639\u0634\u0627\u0631 \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0645\u0639\u0645\u0648\u0644\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0645\u062a\u062f <code>int()<\/code> \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u06cc\u0627\u06cc\u062f \u0645\u062b\u0627\u0644\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0647 \u0646\u0627\u0645 &#8220;\u0633\u0645\u06cc&#8221; \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u062a\u0639\u062f\u0627\u062f \u062e\u0637\u0648\u0637 \u06a9\u062f \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0647\u0631 \u0631\u0648\u0632 \u0631\u0627 \u062b\u0628\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0627\u06cc\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0639\u0645\u0644\u06cc\u0627\u062a \u0631\u06cc\u0627\u0636\u06cc \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u0645 \u062a\u0627 \u0628\u0627\u0632\u062e\u0648\u0631\u062f \u062c\u0627\u0644\u0628\u200c\u062a\u0631\u06cc \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0631\u0627\u0626\u0647 \u062f\u0647\u06cc\u0645\u060c \u0627\u0645\u0627 \u0627\u06cc\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0641\u0639\u0644\u0627\u064b \u0628\u0647 \u0635\u0648\u0631\u062a \u0631\u0634\u062a\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f:<\/p>\n<div>\n<pre># \u0645\u0642\u062f\u0627\u0631 \u0631\u0634\u062a\u0647\u200c\u0627\u06cc\r\nlines_today = '120'\r\nlines_yesterday = '62'\r\n\r\n# \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0645\u062d\u0627\u0633\u0628\u0647 \u062a\u0641\u0627\u0648\u062a\r\nlines_more = lines_today - lines_yesterday\r\n<\/pre>\n<\/div>\n<p>\u0686\u0648\u0646 \u0627\u06cc\u0646 \u062f\u0648 \u0645\u0642\u062f\u0627\u0631 \u0639\u062f\u062f\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u0631\u0634\u062a\u0647\u200c\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u062e\u0637\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0639\u0645\u0644\u06af\u0631 <code>-<\/code> \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u0631\u0648\u06cc \u062f\u0648 \u0645\u0642\u062f\u0627\u0631 \u0631\u0634\u062a\u0647\u200c\u0627\u06cc \u0645\u0639\u062a\u0628\u0631 \u0646\u06cc\u0633\u062a.<\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u06a9\u062f \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u0645 \u0648 \u0645\u062a\u062f <code>int()<\/code> \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u0634\u0648\u0646\u062f \u0648 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0627 \u0627\u06cc\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u06a9\u0647 \u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u0631\u0634\u062a\u0647 \u0628\u0648\u062f\u0647\u200c\u0627\u0646\u062f \u0639\u0645\u0644\u06cc\u0627\u062a \u0631\u06cc\u0627\u0636\u06cc \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u0645.<\/p>\n<div>\n<pre>lines_today = '120'\r\nlines_yesterday = '62'\r\n\r\n# \u062a\u0628\u062f\u06cc\u0644 \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d\r\nlines_more = int(lines_today) - int(lines_yesterday)\r\n<\/pre>\n<\/div>\n<p>\u0645\u062a\u063a\u06cc\u0631 <code>lines_more<\/code> \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u0648 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0645\u0642\u062f\u0627\u0631 \u0639\u062f\u062f\u06cc \u0622\u0646 \u0628\u0631\u0627\u0628\u0631 58 \u0627\u0633\u062a.<\/p>\n<p>\u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0627 <strong><a href=\"https:\/\/parmin.cloud\/\">\u067e\u0627\u0631\u0645\u06cc\u0646 \u06a9\u0644\u0648\u062f<\/a><\/strong> \u0647\u0645\u0631\u0627\u0647 \u0647\u0633\u062a\u06cc\u062f \u0633\u067e\u0627\u0633\u06af\u0632\u0627\u0631\u06cc\u0645.<\/p>\n<div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0631\u0634\u062a\u0647\u200c\u0647\u0627 (strings) \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u062f int() \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u062f. \u0627\u06af\u0631 \u0631\u0634\u062a\u0647 \u0634\u0645\u0627 \u0627\u0639\u0634\u0627\u0631 \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0645\u0639\u0645\u0648\u0644\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0645\u062a\u062f int() \u0628\u0647 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u06cc\u0627\u06cc\u062f \u0645\u062b\u0627\u0644\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0647 \u0646\u0627\u0645 &#8220;\u0633\u0645\u06cc&#8221; \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u062a\u0639\u062f\u0627\u062f \u062e\u0637\u0648\u0637 \u06a9\u062f \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0647\u0631 \u0631\u0648\u0632 \u0631\u0627 \u062b\u0628\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":6084,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[67,190,343],"tags":[815,819,816,817,818],"class_list":["post-6082","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-67","category-programming","category-python","tag-815","tag-819","tag-816","tag-----string--integer","tag--int--python"],"aioseo_notices":[],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/6082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/comments?post=6082"}],"version-history":[{"count":1,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/6082\/revisions"}],"predecessor-version":[{"id":6086,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/posts\/6082\/revisions\/6086"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/media\/6084"}],"wp:attachment":[{"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/media?parent=6082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/categories?post=6082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parmin.cloud\/blog\/wp-json\/wp\/v2\/tags?post=6082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}