{"id":6925,"date":"2025-01-09T14:58:56","date_gmt":"2025-01-09T11:58:56","guid":{"rendered":"https:\/\/1.cbm.ua\/?p=6925"},"modified":"2026-01-05T01:50:08","modified_gmt":"2026-01-04T22:50:08","slug":"%d1%88%d0%bf%d0%b0%d1%80%d0%b3%d0%b0%d0%bb%d0%ba%d0%b0-%d0%b4%d0%bb%d1%8f-python-3-13","status":"publish","type":"post","link":"https:\/\/1.cbm.ua\/?p=6925","title":{"rendered":"\ud83d\udcd6\u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u0434\u043b\u044f Python 3.13"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/th><th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th><th>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/th><\/tr><\/thead><tbody><tr><td><code>__file__<\/code><\/td><td>\u041f\u0443\u0442\u044c \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 Python. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c.<\/td><td>\u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 <code>C:\/project\/script.py<\/code>, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <code>\"script.py\"<\/code> \u0438\u043b\u0438 <code>\"C:\/project\/script.py\"<\/code><\/td><\/tr><tr><td><code>os.getcwd()<\/code><\/td><td>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442.<\/td><td>\u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437 <code>C:\/project<\/code>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442: <code>\"C:\/project\"<\/code><\/td><\/tr><tr><td><code>os.path.abspath(__file__)<\/code><\/td><td>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 <code>__file__<\/code> \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443.<\/td><td>\u0415\u0441\u043b\u0438 <code>__file__<\/code> \u0440\u0430\u0432\u043d\u043e <code>\"script.py\"<\/code>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442: <code>\"C:\/project\/script.py\"<\/code><\/td><\/tr><tr><td><code>os.path.dirname()<\/code><\/td><td>\u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438.<\/td><td>\u0415\u0441\u043b\u0438 \u043f\u0443\u0442\u044c \u0440\u0430\u0432\u0435\u043d <code>\"C:\/project\/script.py\"<\/code>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442: <code>\"C:\/project\"<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Make sure requests package is installed  \nfrom icecream import ic #  ic() \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u043e print() \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\nic.configureOutput(includeContext=True)  # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430\n\nimport os\n#__file__\n#os.getcwd()\n#os.path.abspath(__file__)\n#os.path.dirname()\n\nic(__file__) #\nic(os.path.abspath(__file__)) #\nic(os.path.dirname(os.path.abspath(__file__))) #\u041a\u0430\u043a\u043e\u0439 \u043f\u0443\u0442\u044c \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430\n\nic(os.getcwd())\nic(os.path.abspath(os.getcwd()))\n\n<\/pre>\n\n\n\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u044b\u0432\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>__file__: \n'D:\\\\project_D_2025\\\\python\\\\test_ChatCPT\\\\pr\\\\01_\u0413\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439_\u043f\u0435\u0440\u0435\u0432\u043e\u0434_\u043d\u0430_\u0440\u0430\u0437\u043d\u044b\u0435_\u044f\u0437\u044b\u043a\u0438\\\\jp_library_current_function\\\\test_.py.py'\n\nos.path.abspath(__file__): \n'D:\\\\project_D_2025\\\\python\\\\test_ChatCPT\\\\pr\\\\01_\u0413\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439_\u043f\u0435\u0440\u0435\u0432\u043e\u0434_\u043d\u0430_\u0440\u0430\u0437\u043d\u044b\u0435_\u044f\u0437\u044b\u043a\u0438\\\\jp_library_current_function\\\\test_.py.py'\n\nos.path.dirname(os.path.abspath(__file__)): \n'D:\\\\project_D_2025\\\\python\\\\test_ChatCPT\\\\pr\\\\01_\u0413\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439_\u043f\u0435\u0440\u0435\u0432\u043e\u0434_\u043d\u0430_\u0440\u0430\u0437\u043d\u044b\u0435_\u044f\u0437\u044b\u043a\u0438\\\\jp_library_current_function'\n\n\nos.getcwd(): \n'D:\\\\project_D_2025\\\\python\\\\test_ChatCPT'\n\nos.path.abspath(os.getcwd()): 'D:\\\\project_D_2025\\\\python\\\\test_ChatCPT'<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"><\/pre>\n\n\n\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u044b\u0432\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 __file__ \u041f\u0443\u0442\u044c \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 Python. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 C:\/project\/script.py, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: &#171;script.py&#187; \u0438\u043b\u0438 &#171;C:\/project\/script.py&#187; os.getcwd() \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437 C:\/project, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442: &#171;C:\/project&#187; os.path.abspath(__file__) \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 __file__ \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443.&hellip;&nbsp;<a href=\"https:\/\/1.cbm.ua\/?p=6925\" rel=\"bookmark\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 &raquo;<span class=\"screen-reader-text\">\ud83d\udcd6\u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u0434\u043b\u044f Python 3.13<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[2],"tags":[176],"class_list":["post-6925","post","type-post","status-publish","format-standard","hentry","category-python","tag-176"],"_links":{"self":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/6925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6925"}],"version-history":[{"count":8,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/6925\/revisions"}],"predecessor-version":[{"id":8030,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/6925\/revisions\/8030"}],"wp:attachment":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}