{"id":303332,"date":"2020-05-10T15:00:44","date_gmt":"2020-05-10T15:00:44","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=303332"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=303332","title":{"rendered":"\u041e\u0441\u043d\u043e\u0432\u044b easygui python. \u0427\u0430\u0441\u0442\u044c 1"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/501286\/\">\u042d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u0430\u0445 \u043c\u043e\u0434\u0443\u043b\u044f easygui \u0434\u043b\u044f \u044f\u0437\u044b\u043a\u0430 Python. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Python \u0432\u0435\u0442\u043a\u0438 2-x, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044e \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>-1. \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c easygui<\/b><\/p>\n<pre><code class=\"python\">import easygui from easygui import * #\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0451. <\/code><\/pre>\n<p>  <b>0. \u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0438\u0440!<\/b><\/p>\n<p>  \u041d\u0430\u043f\u0438\u0448\u0435\u043c Hello, world! \u043d\u0430 easygui.<\/p>\n<pre><code class=\"python\">msgbox(msg, title, ok_button, image, root) #\u0412\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (args) <\/code><\/pre>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435(\u043c\u043e\u0436\u043d\u043e \u0438 \u0431\u0435\u0437 \u043d\u0438\u0445, \u043d\u043e \u0442\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435).<\/p>\n<pre><code class=\"python\">msg = &quot;Hello, world!&quot; #\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 title = &quot;Hello, world!&quot; #\u0428\u0430\u043f\u043a\u0430 button = &quot;\u041e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&quot; #\u041a\u043d\u043e\u043f\u043a\u0430 image = &quot;your_image&quot; #\u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442\u0443 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"python\">msgbox(msg, title, button) #\u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0412\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u043e\u043a\u043e\u0448\u043a\u043e:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/98f\/5c0\/190\/98f5c019075d474c8eb7a340cba5676c.png\" alt=\"image\"\/><\/div>\n<p>  \u041c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 Hello, world! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>  <b>1. \u0412\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 inputbox \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/b><\/p>\n<p>  \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435 enterbox \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c input.<\/p>\n<pre><code class=\"python\">n = input() #\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434. <\/code><\/pre>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e easygui \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f enterbox. \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e vvod \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435.<\/p>\n<pre><code class=\"python\">def vvod():     global var1 #\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.     msg = &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u0443&quot;     title = &quot;\u0412\u0432\u043e\u0434 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439&quot; #\u0428\u0430\u043f\u043e\u0447\u043a\u0430. <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044f(\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0439 \u0432\u0432\u043e\u0434\u0430).<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e vvod \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"python\">fieldValues2 = enterbox(msg, title) var1 = fieldValues2[0] <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0435 \u043e\u043a\u043e\u0448\u043a\u043e \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/a6a\/cd7\/b25\/a6acd7b254164ec29bf94977bbe30f5f.png\" alt=\"image\"\/><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0412\u044b\u0432\u043e\u0434 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d msgbox<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">msg = &quot;\u0412\u044b \u0432\u0432\u0435\u043b\u0438 &quot; + str(var1) # Str + Int = Error msgbox(msg, &quot;\u0412\u043e\u0437\u0432\u0440\u0430\u0442&quot;, &quot;\u042f \u043f\u043e\u043d\u044f\u043b!&quot;) #\u0412\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>2. \u0414\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442?<\/b><\/p>\n<p>  \u0412 easygui \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f ynbox(YesNoBox). \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0435\u0433\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u00ab\u0425\u043e\u0442\u0438\u0442\u0435 \u043b\u0438 \u0432\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?\u00bb \u0438 \u0432\u044b\u0431\u043e\u0440 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u0437 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u00ab\u0414\u0430\u00bb \u0438 \u00ab\u041d\u0435\u0442\u00bb, \u0430 \u0432\u043e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u0438(\u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438 \u00abdefault_choice\u00bb \u0438 \u00abcancel_choice\u00bb). \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u0438\u043d\u0434\u0438\u0442\u044c \u0438\u0445 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u043e\u0440\u043e\u0432.<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n<pre><code class=\"python\">msg = &quot;\u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?&quot; title = &quot;\u0412\u0430\u0436\u043d\u043e!&quot; choices = (&quot;[&lt;F1&gt;]\u0414\u0430&quot;, &quot;[&lt;F2&gt;]\u041d\u0435\u0442&quot;) #\u0412\u044b\u0431\u043e\u0440\u044b \u0438 \u0438\u0445 \u0431\u0438\u043d\u0434\u044b <\/code><\/pre>\n<p>  \u041d\u0443 \u0430 \u0432\u043e\u0442, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u0414\u0430\u00bb, \u0430 \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u041d\u0435\u0442\u00bb \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0441\u0430\u043c\u0438.<\/p>\n<pre><code class=\"python\">ynbox(msg, title, choices, image=None, default_choice=&quot;[&lt;F1&gt;]\u0414\u0430&quot;, cancel_choice=&quot;[&lt;F2&gt;]\u041d\u0435\u0442&quot;) #\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 &quot;\u0414\u0430&quot;, \u0430 \u0447\u0442\u043e &quot;\u041d\u0435\u0442&quot;. <\/code><\/pre>\n<p>  \u041f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0435 \u043e\u043a\u043e\u0448\u043a\u043e:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/8f4\/d85\/304\/8f4d8530411d495aaedf5ccf514265a5.png\" alt=\"image\"\/><\/div>\n<p>  \u0417\u0430\u043f\u0438\u0441\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 inputbox.<\/p>\n<p>  <b>3. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f. \u041d\u0435 SQL!<\/b><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434 \u0432\u0445\u043e\u0434\u043e\u043c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043b\u043e\u0433\u0438\u043d. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<pre><code class=\"python\">def login_procedure():     while True:         msg = &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c&quot;         title = &quot;\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f&quot;         fieldNames = [&quot;\u041b\u043e\u0433\u0438\u043d&quot;, &quot;\u041f\u0430\u0440\u043e\u043b\u044c&quot;] #\u0412\u0441\u0451 \u043a\u0430\u043a \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438? <\/code><\/pre>\n<p>  \u0426\u0438\u043a\u043b \u043d\u0443\u0436\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0441\u044f, \u0435\u043c\u0443 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443. \u0422\u0430\u043a\u0436\u0435, \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u041e\u0442\u043c\u0435\u043d\u0430\u00bb \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u0435\u043d try.<\/p>\n<pre><code class=\"python\">fieldValues = multpasswordbox(msg, title, fieldNames) #\u0427\u0442\u043e\u0431\u044b \u043e\u043a\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c         try: #\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f             USERNAME, PASSWORD = fieldValues[0], fieldValues[1]         except: #\u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0437\u0430\u043d\u043e\u0432\u043e.             login_procedure() #\u041d\u0443 \u043f\u0440\u043e \u043e\u0442\u043c\u0435\u043d\u0443 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438.             exit(0) #\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0432\u0442\u043e\u0440\u043e\u0435 \u043e\u043a\u043d\u043e. <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c(\u041c\u043e\u0436\u043d\u043e \u0438 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u0438 \u0432 SQL, \u043d\u043e \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u0430\u0445 easygui):<\/p>\n<pre><code class=\"python\">#\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c.         if USERNAME == &quot;login&quot; and PASSWORD == &quot;passtogo&quot;:             msgbox(&quot;\u0412\u0445\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d!&quot;)             break #\u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430         else:             msgbox(&quot;\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u0438\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c&quot;) <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b\u0438. \u041f\u0430\u0440\u0443 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u043e\u0432:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/fe7\/c0c\/aa9\/fe7c0caa9a084fd6bfd74bc69d6d36c2.png\" alt=\"image\"\/><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/996\/d4e\/ad2\/996d4ead2e834d5bbe7dc4a7667b6e59.png\" alt=\"image\"\/><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/d15\/a81\/030\/d15a810304194dbabb6086f268d6f8c0.png\" alt=\"image\"\/><\/div>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u0412\u0430\u043c \u0441\u0442\u0430\u043b\u043e \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0438\u043d\u0435\u0441\u043b\u0430 \u0412\u0430\u043c \u043f\u043e\u043b\u044c\u0437\u0443. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440! \u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441, \u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/501286\/\"> https:\/\/habr.com\/ru\/post\/501286\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/501286\/\">\u042d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u0430\u0445 \u043c\u043e\u0434\u0443\u043b\u044f easygui \u0434\u043b\u044f \u044f\u0437\u044b\u043a\u0430 Python. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Python \u0432\u0435\u0442\u043a\u0438 2-x, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044e \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-303332","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=303332"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303332\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}