{"id":17,"date":"2021-02-26T01:57:01","date_gmt":"2021-02-25T17:57:01","guid":{"rendered":"https:\/\/coding-peter.com\/?p=17"},"modified":"2022-12-22T20:25:05","modified_gmt":"2022-12-22T12:25:05","slug":"day-1-printing-input-function-variables-naming-day-2-data-type-f-string","status":"publish","type":"post","link":"https:\/\/coding-peter.com\/?p=17","title":{"rendered":"Day 1 printing , Input function , Variables naming. Day 2 Data type , F String"},"content":{"rendered":"\n<p>Day 1 : <\/p>\n\n\n\n<p>\u5b78\u7fd2\u4e86print() \u53bb\u5217\u5370\u6587\u5b57\uff0c\u5728print()\u4e2d\u53ef\u4ee5\u4f7f\u7528&#8221; &#8220;(\u96d9\u5f15\u865f)\u548c&#8217; &#8216;(\u55ae\u5f15\u865f) \u3002\u5982\u679cprint \u7684\u6642\u5019\uff0c\u5b57\u4e32\u4e2d\u6709\u96d9\u5f15\u865f\u9700\u8981print\u51fa\u4f86\u7684\u8a71\uff0c\u53ef\u4ee5\u7528\u55ae\u5f15\u865f\u628a\u5b83\u5011\u5305\u8457\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"285\" src=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1024x285.png\" alt=\"\" class=\"wp-image-19\" srcset=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1024x285.png 1024w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-300x83.png 300w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-768x214.png 768w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-950x264.png 950w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-450x125.png 450w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image.png 1218w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Input() \u53ef\u4ee5\u8f38\u5165\u8cc7\u6599\uff0c\u90a3\u4e9b\u8cc7\u6599\u7684type\u90fd\u6703\u662fString \uff0c\u5982\u679c\u9700\u8981\u662f\u6578\u5b57\u9700\u8981\u8f49\u63dbtype <strong>(int() , float())<\/strong>\u3002\u53e6\u5916\uff0c\u5982\u679cinput() \u548cprint() \u5728\u540c\u4e00\u884ccode \u7684\u6642\u5019\uff0c input() \u662f\u6bd4print() \u512a\u5148\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"185\" src=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-1024x185.png\" alt=\"\" class=\"wp-image-20\" srcset=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-1024x185.png 1024w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-300x54.png 300w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-768x139.png 768w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-950x171.png 950w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1-450x81.png 450w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-1.png 1197w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Day 2 <\/p>\n\n\n\n<p>Data Type : String , int , float <strong>(\u7528\u4f86\u653e\u6709\u5c0f\u6578)<\/strong> , boolean \uff0c \u5982\u679c\u5728\u5bebcode\u7684\u6642\u5019\uff0c\u4e0d\u6e05\u695a\u90a3\u500bVariable \u662f\u751a\u9ebctype \uff0c\u53ef\u4ee5\u7528type() \u4f86\u5206\u5225 <strong>(\u8a18\u5f97\u8981print() \u51fa\u4f86)<\/strong> \u3002<\/p>\n\n\n\n<p>F String \u5728print \u5404\u6a23\u7684\u6578\u64da\u7684\u6642\u5019\u5341\u5206\u4e4b\u65b9\u4fbf \uff0c\u4e00\u822c\u5728print()\u4e4b\u4e2d\uff0c\u6578\u64da\u662f\u9700\u8981string type \u624d\u53ef\u4ee5print \u51fa\u9ece\uff0c\u5982\u679c\u90a3\u500bVariable\u662f\u6578\u5b57type\u7684\u8a71\u5c31\u5fc5\u9808\u8f49\u63dbstr()\u624d\u53ef\u4ee5print\u51fa\u4f86\uff0c\u4f46\u5728F String \u5c31\u4e0d\u9700\u8981\uff0c\u53ea\u9700\u8981\u5728&#8221;&#8221;\u4e4b\u524d\u52a0f \uff0c\u4e4b\u5f8c\u628a{}\u5305\u8457\u4f60\u7684Variable\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-1024x383.png\" alt=\"\" class=\"wp-image-21\" srcset=\"https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-1024x383.png 1024w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-300x112.png 300w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-768x287.png 768w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-950x355.png 950w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2-450x168.png 450w, https:\/\/coding-peter.com\/wp-content\/uploads\/2021\/02\/image-2.png 1196w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Day 1 : \u5b78\u7fd2\u4e86print() \u53bb&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-learning-log","category-python"],"_links":{"self":[{"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coding-peter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":2,"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/coding-peter.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/coding-peter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coding-peter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coding-peter.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}