{"id":3766,"date":"2021-06-28T07:43:04","date_gmt":"2021-06-28T07:43:04","guid":{"rendered":"https:\/\/tourrion.com\/?p=63"},"modified":"2026-07-04T16:41:05","modified_gmt":"2026-07-04T16:41:05","slug":"%e0%b8%8a%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%81%e0%b8%9b%e0%b8%a3%e0%b9%83%e0%b8%99-python","status":"publish","type":"post","link":"https:\/\/somniantes.com\/?p=3766","title":{"rendered":"\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e19 Python"},"content":{"rendered":"<p><script src=\"https:\/\/cdn.jsdelivr.net\/gh\/google\/code-prettify@master\/loader\/run_prettify.js\"><\/script><\/p>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23 (Text)<\/td><td><code>str<\/code><\/td><\/tr><tr><td>\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 (Numberic)<\/td><td><code>int<\/code>,&nbsp;<code>float<\/code>,&nbsp;<code>complex<\/code><\/td><\/tr><tr><td>Sequence Types:<\/td><td><code>list<\/code>,&nbsp;<code>tuple<\/code>,&nbsp;<code>range<\/code><\/td><\/tr><tr><td>Mapping Type:<\/td><td><code>dict<\/code><\/td><\/tr><tr><td>\u0e40\u0e0b\u0e47\u0e17 (Set)<\/td><td><code>set<\/code>,&nbsp;<code>frozenset<\/code><\/td><\/tr><tr><td>\u0e1a\u0e39\u0e25\u0e35\u0e19 (Boolean)<\/td><td><code>bool<\/code><\/td><\/tr><tr><td>\u0e44\u0e1a\u0e19\u0e32\u0e23\u0e35 (Binary)<\/td><td><code>bytes<\/code>,&nbsp;<code>bytearray<\/code>,&nbsp;<code>memoryview<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e0a\u0e19\u0e34\u0e14\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">my_varieble = <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>type<\/strong><\/span>(x)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code prettyprint\"><code>my_variable= <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">str<\/span><\/strong>(\u201cHello World\u201d)\nprint(my_variable)\n\n\ud83d\udc49 Hello World<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e0a\u0e19\u0e34\u0e14\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e19 Python \u0e19\u0e31\u0e49\u0e19 \u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e1b\u0e01\u0e15\u0e34\u0e04\u0e2d\u0e21\u0e44\u0e1e\u0e40\u0e25\u0e2d\u0e23\u0e4c\u0e08\u0e30\u0e23\u0e39\u0e49\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/p>\n\n\n\n<pre class=\"prettyprint\"><code>x=5                                                 # x \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e1a\u0e1a <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>int<\/strong><\/span>\nmy_text= \u201cHello World\u201d                              # my_text \u00a0\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e1a\u0e1a <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>str<\/strong><\/span>\nmy_array= &#91;\u201cBangkok\u201d, \u201cChiang Mai\u201d, \u201cPrachuaup\u201d]    # my_array \u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>list<\/strong><\/span><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Str<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"> str<\/span><\/strong> \u0e19\u0e31\u0e49\u0e19 &nbsp;\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 \u0e2d\u0e31\u0e0d\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e1a\u0e1a\u0e40\u0e14\u0e35\u0e48\u0e22\u0e27  (<code>'...'<\/code>) \u0e2b\u0e23\u0e37\u0e2d \u0e2d\u0e31\u0e0d\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e1a\u0e1a\u0e04\u0e39\u0e48 (<code>\"...\"<\/code>) \u0e01\u0e47\u0e44\u0e14\u0e49 \u0e43\u0e2b\u0e49\u0e1c\u0e25\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19<\/li><li>\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e2a\u0e31\u0e48\u0e07\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e27\u0e48\u0e32 &nbsp;don&#8217;t \u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e33\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e2d\u0e31\u0e0d\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28  \u0e17\u0e33\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23 <\/li><\/ol>\n\n\n\n<pre class=\"prettyprint\"><code>print(\"I don\\'t know.\")     # \u00a0\u0e43\u0e2b\u0e49\u0e43\u0e2a\u0e48 (<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">\\'<\/span><\/strong>) \u0e41\u0e17\u0e19\u0e2d\u0e31\u0e0d\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e19\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e04\n\n\ud83d\udc49 I don't know.<\/code><\/pre>\n\n\n\n<pre class=\"prettyprint\"><code>\u0e2b\u0e23\u0e37\u0e2d \nprint(r\"I don't know.\")     # \u0e43\u0e2a\u0e48 r \u0e01\u0e48\u0e2d\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22\u0e04\u0e33\u0e1e\u0e39\u0e14 \u0e0b\u0e36\u0e48\u0e07 r \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e21\u0e32\u0e08\u0e32\u0e01 raw string\n\ud83d\udc49I don't know.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23 (Text) str \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 (Numberic) int,&nbsp;float,&nbsp;complex Sequence Types: list,&nbsp;tuple,&nbsp;range Mapping Type: dict \u0e40\u0e0b\u0e47\u0e17 (Set) set,&nbsp;frozenset \u0e1a\u0e39\u0e25\u0e35\u0e19 (Boolean) bool \u0e44\u0e1a\u0e19\u0e32\u0e23\u0e35 (Binary) bytes,&nbsp;bytearray,&nbsp;memoryview \u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e0a\u0e19\u0e34\u0e14\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 my_varieble = type(x) &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[33,35],"tags":[],"class_list":["post-3766","post","type-post","status-publish","format-standard","hentry","category-programming","category-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/posts\/3766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/somniantes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3766"}],"version-history":[{"count":1,"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/posts\/3766\/revisions"}],"predecessor-version":[{"id":7980,"href":"https:\/\/somniantes.com\/index.php?rest_route=\/wp\/v2\/posts\/3766\/revisions\/7980"}],"wp:attachment":[{"href":"https:\/\/somniantes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/somniantes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/somniantes.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}