{"id":15044,"date":"2024-03-21T12:58:55","date_gmt":"2024-03-21T09:28:55","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=15044"},"modified":"2024-03-21T12:58:55","modified_gmt":"2024-03-21T09:28:55","slug":"python-data-types-2","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/python-data-types-2\/","title":{"rendered":"Python \u6570\u636e\u7c7b\u578b"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u0645\u0642\u062f\u0645\u0647<\/h2>\n<p>\u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0646\u0648\u0639 \u0645\u062a\u063a\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0645\u0627 \u062a\u0645\u0627\u0645 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0641\u0647\u0631\u0633\u062a \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u062f\u0631 \u0645\u0648\u0631\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0628\u062d\u062b \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0627\u06af\u0631 \u062f\u0631 \u062d\u0627\u0644 \u0634\u0631\u0648\u0639 \u06a9\u0627\u0631 \u0628\u0627 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0647\u0633\u062a\u06cc\u062f\u060c \u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0622\u0645\u0648\u0632\u0634 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc\u0627\u0646 \u062f\u06cc\u062f\u0646 \u06a9\u0646\u06cc\u062f. \u0648 \u0627\u06af\u0631 \u0642\u0628\u0644\u0627\u064b \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u0647 \u0627\u06cc\u062f\u060c \u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0622\u0645\u0648\u0632\u0634 \u0642\u0628\u0644\u06cc \u0645\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0646\u0638\u0631\u0627\u062a \u0648 \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d9%86%d9%88%d8%b9-%d8%af%d8%a7%d8%af%d9%87-%d8%b9%d8%af%d8%af%db%8c-%d9%be%d8%a7%db%8c%d8%aa%d9%88%d9%86\">\u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0639\u062f\u062f\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646<\/h2>\n<p>\u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0639\u062f\u062f\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0645\u0642\u0627\u062f\u06cc\u0631 \u0639\u062f\u062f\u06cc \u0645\u0627\u0646\u0646\u062f\u061b<\/p>\n<ol>\n<li>int &#8211; \u0627\u0639\u062f\u0627\u062f \u0635\u062d\u06cc\u062d \u0627\u0645\u0636\u0627 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0627 \u0637\u0648\u0644 \u0646\u0627\u0645\u062d\u062f\u0648\u062f \u0646\u06af\u0647 \u0645\u06cc \u062f\u0627\u0631\u062f.<\/li>\n<li>long- \u0627\u0639\u062f\u0627\u062f \u0635\u062d\u06cc\u062d \u0637\u0648\u0644\u0627\u0646\u06cc \u0631\u0627 \u0646\u06af\u0647 \u0645\u06cc \u062f\u0627\u0631\u062f (\u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 2.x \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u060c \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 3.x \u0645\u0646\u0633\u0648\u062e \u0634\u062f\u0647 \u0627\u0633\u062a).<\/li>\n<li>\u0634\u0646\u0627\u0648\u0631 &#8211; \u0627\u0639\u062f\u0627\u062f \u062f\u0642\u06cc\u0642 \u0634\u0646\u0627\u0648\u0631 \u0631\u0627 \u0646\u06af\u0647 \u0645\u06cc \u062f\u0627\u0631\u062f \u0648 \u062a\u0627 15 \u0631\u0642\u0645 \u0627\u0639\u0634\u0627\u0631 \u062f\u0642\u06cc\u0642 \u0627\u0633\u062a.<\/li>\n<li>\u0645\u062e\u062a\u0644\u0637 &#8211; \u062f\u0627\u0631\u0627\u06cc \u0627\u0639\u062f\u0627\u062f \u0645\u062e\u062a\u0644\u0637 \u0627\u0633\u062a.<\/li>\n<\/ol>\n<p>\u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u062f\u0631 \u062d\u06cc\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0645\u062a\u063a\u06cc\u0631\u06cc \u0645\u0627\u0646\u0646\u062f C \u06cc\u0627 C++\u060c \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u062a\u0639\u0631\u06cc\u0641 \u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0646\u062f\u0627\u0631\u06cc\u0645. \u0645\u0627 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0645\u0642\u0627\u062f\u06cc\u0631\u06cc \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u0645. \u0627\u0645\u0627 \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0686\u0647 \u0646\u0648\u0639 \u0645\u0642\u062f\u0627\u0631 \u0639\u062f\u062f\u06cc \u0631\u0627 \u0646\u06af\u0647 \u0645\u06cc\u200c\u062f\u0627\u0631\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0627\u0632 type()\u060c \u0645\u0627\u0646\u0646\u062f \u0627\u06cc\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>#create a variable with integer value.\r\na=100\r\nprint(\"The type of variable having value\", a, \" is \", type(a))\r\n#create a variable with float value.\r\nb=10.2345\r\nprint(\"The type of variable having value\", b, \" is \", type(b))\r\n#create a variable with complex value.\r\nc=100+3j\r\nprint(\"The type of variable having value\", c, \" is \", type(c))<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u06a9\u062f \u0628\u0627\u0644\u0627 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062e\u0631\u0648\u062c\u06cc \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f.<\/p>\n<h2 id=\"%d9%86%d9%88%d8%b9-%d8%af%d8%a7%d8%af%d9%87-%d8%b1%d8%b4%d8%aa%d9%87-%d9%be%d8%a7%db%8c%d8%aa%d9%88%d9%86\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"672\"  height=\"240\"  class=\"aligncenter wp-image-15046 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 672px) 100vw, 672px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type.png 672w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-300x107.png 300w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-110x39.png 110w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-200x71.png 200w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-380x136.png 380w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-255x91.png 255w, https:\/\/cdn.itpiran.net\/2024\/03\/21124116\/datatypes_useOf_type-550x196.png 550w\" ><br \/>\n\u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0631\u0634\u062a\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646<\/h2>\n<p>\u0631\u0634\u062a\u0647 \u062f\u0646\u0628\u0627\u0644\u0647 \u0627\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u0627\u0633\u062a. \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u06cc\u0648\u0646\u06cc\u06a9\u062f \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f. \u0628\u0647 \u0637\u0648\u0631 \u06a9\u0644\u06cc\u060c \u0631\u0634\u062a\u0647 \u0647\u0627 \u0628\u0627 \u06cc\u06a9 \u06cc\u0627 \u062f\u0648 \u0646\u0642\u0644 \u0642\u0648\u0644 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>a = \"string in a double quote\"\r\nb= 'string in a single quote'\r\nprint(a)\r\nprint(b)\r\n# using ',' to concatenate the two or several strings\r\nprint(a,\"concatenated with\",b)\r\n#using '+' to concate the two or several strings\r\nprint(a+\" concated with \"+b)\r\n<\/code><\/pre>\n<\/div>\n<p>\u06a9\u062f \u0628\u0627\u0644\u0627 \u062e\u0631\u0648\u062c\u06cc \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc \u06a9\u0646\u062f<\/p>\n<h2 id=\"%d9%86%d9%88%d8%b9-%d8%af%d8%a7%d8%af%d9%87-%d9%84%db%8c%d8%b3%d8%aa-%d9%be%d8%a7%db%8c%d8%aa%d9%88%d9%86\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"686\"  height=\"248\"  class=\"aligncenter wp-image-15047 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 686px) 100vw, 686px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example.png 686w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-300x108.png 300w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-110x40.png 110w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-200x72.png 200w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-380x137.png 380w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-255x92.png 255w, https:\/\/cdn.itpiran.net\/2024\/03\/21124445\/string_example-550x199.png 550w\" ><br \/>\n\u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0644\u06cc\u0633\u062a \u067e\u0627\u06cc\u062a\u0648\u0646<\/h2>\n<p>\u0627\u06cc\u0646 \u0644\u06cc\u0633\u062a \u06cc\u06a9 \u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0647\u0645\u0647 \u06a9\u0627\u0631\u0647 \u0627\u0646\u062d\u0635\u0627\u0631\u06cc \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a. \u0628\u0647 \u06cc\u06a9 \u0645\u0639\u0646\u0627\u060c \u0647\u0645\u0627\u0646 \u0622\u0631\u0627\u06cc\u0647 \u062f\u0631 C\/C++ \u0627\u0633\u062a. \u0627\u0645\u0627 \u0646\u06a9\u062a\u0647 \u062c\u0627\u0644\u0628 \u062f\u0631 \u0645\u0648\u0631\u062f \u0644\u06cc\u0633\u062a \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0647\u0645\u0632\u0645\u0627\u0646 \u062f\u0631 \u062e\u0648\u062f \u0646\u06af\u0647 \u062f\u0627\u0631\u062f. \u0644\u06cc\u0633\u062a \u0631\u0633\u0645\u06cc\u060c \u062f\u0646\u0628\u0627\u0644\u0647 \u0627\u06cc \u0645\u0631\u062a\u0628 \u0627\u0632 \u0628\u0631\u062e\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0631\u0648\u0634\u0647 ([]) \u0648 \u06a9\u0627\u0645\u0627 (\u060c) \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code> #list of having only integers\r\na= [1,2,3,4,5,6]\r\nprint(a)\r\n#list of having only strings\r\nb=[\"hello\",\"john\",\"reese\"]\r\nprint(b)\r\n#list of having both integers and strings\r\nc= [\"hey\",\"you\",1,2,3,\"go\"]\r\nprint(c)\r\n#index are 0 based. this will print a single character\r\nprint(c[1]) #this will print \"you\" in list c\r\n<\/code><\/pre>\n<\/div>\n<p>\u06a9\u062f \u0628\u0627\u0644\u0627 \u062e\u0631\u0648\u062c\u06cc \u0645\u0627\u0646\u0646\u062f \u0627\u06cc\u0646 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc \u06a9\u0646\u062f<\/p>\n<h2 id=\"%d9%be%d8%a7%db%8c%d8%aa%d9%88%d9%86-%d8%aa%d8%a7%d9%be%d9%84\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"669\"  height=\"241\"  class=\"aligncenter wp-image-15048 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 669px) 100vw, 669px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output.png 669w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-300x108.png 300w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-110x40.png 110w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-200x72.png 200w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-380x137.png 380w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-255x92.png 255w, https:\/\/cdn.itpiran.net\/2024\/03\/21124624\/python_list_example_output-550x198.png 550w\" ><br \/>\n\u067e\u0627\u06cc\u062a\u0648\u0646 \u062a\u0627\u067e\u0644<\/h2>\n<p>\u062a\u0627\u067e\u0644 \u06cc\u06a9 \u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u062f\u06cc\u06af\u0631 \u0627\u0633\u062a \u06a9\u0647 \u062f\u0646\u0628\u0627\u0644\u0647 \u0627\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0634\u0628\u06cc\u0647 \u0628\u0647 \u06cc\u06a9 \u0644\u06cc\u0633\u062a \u0627\u0633\u062a. \u0627\u0645\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0646\u0627\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u06cc\u06a9 \u062a\u0627\u067e\u0644 \u062f\u0631 \u0628\u0631\u0627\u0628\u0631 \u0646\u0648\u0634\u062a\u0646 \u0645\u062d\u0627\u0641\u0638\u062a \u0645\u06cc \u0634\u0648\u0646\u062f. \u062f\u0627\u062f\u0647 \u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u062a\u0627\u067e\u0644 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u0631\u0627\u0646\u062a\u0632 \u0648 \u06a9\u0627\u0645\u0627 \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>tuple having only integer type of data.\r\na=(1,2,3,4)\r\nprint(a) #prints the whole tuple\r\ntuple having multiple type of data.\r\nb=(\"hello\", 1,2,3,\"go\")\r\nprint(b) #prints the whole tuple\r\n#index of tuples are also 0 based.r code... *\/<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0627\u06cc\u0646 \u06a9\u062f \u0646\u0645\u0648\u0646\u0647 \u062a\u0627\u067e\u0644 \u0627\u0632 \u0646\u0648\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0627\u0644\u0627 \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<h2 id=\"%d8%af%db%8c%da%a9%d8%b4%d9%86%d8%b1%db%8c-%d9%be%d8%a7%db%8c%d8%aa%d9%88%d9%86\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"670\"  height=\"224\"  class=\"aligncenter wp-image-15049 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 670px) 100vw, 670px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output.png 670w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-300x100.png 300w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-110x37.png 110w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-200x67.png 200w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-380x127.png 380w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-255x85.png 255w, https:\/\/cdn.itpiran.net\/2024\/03\/21124807\/python_tuple_example_output-550x184.png 550w\" ><br \/>\n\u062f\u06cc\u06a9\u0634\u0646\u0631\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646<\/h2>\n<p>\u062f\u06cc\u06a9\u0634\u0646\u0631\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u06cc\u06a9 \u062a\u0648\u0627\u0644\u06cc \u0646\u0627\u0645\u0631\u062a\u0628 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0634\u06a9\u0644 \u062c\u0641\u062a \u06a9\u0644\u06cc\u062f-\u0645\u0642\u062f\u0627\u0631 \u0627\u0633\u062a. \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0646\u0648\u0639 \u062c\u062f\u0648\u0644 \u0647\u0634 \u0627\u0633\u062a. \u062f\u06cc\u06a9\u0634\u0646\u0631\u06cc \u0647\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 \u067e\u0631\u0627\u0646\u062a\u0632\u0647\u0627\u06cc \u0641\u0631\u0641\u0631\u06cc \u0628\u0647 \u0634\u06a9\u0644 key:value \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f. \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0631\u0648\u0634\u06cc \u0628\u0647\u06cc\u0646\u0647 \u062f\u0631 \u0645\u06cc\u0627\u0646 \u062d\u062c\u0645 \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0633\u06cc\u0627\u0631 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code> #a sample dictionary variable\r\na = {1:\"first name\",2:\"last name\", \"age\":33}\r\n#print value having key=1\r\nprint(a[1])\r\n#print value having key=2\r\nprint(a[2])\r\n#print value having key=\"age\"\r\nprint(a[\"age\"])<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u0627\u06cc\u0646 \u06a9\u062f \u0646\u0645\u0648\u0646\u0647 \u062f\u0627\u062f\u0647 \u062f\u06cc\u06a9\u0634\u0646\u0631\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f\u060c \u062e\u0631\u0648\u062c\u06cc \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"666\"  height=\"236\"  class=\"aligncenter wp-image-15050 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 666px) 100vw, 666px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output.png 666w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-300x106.png 300w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-110x39.png 110w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-200x71.png 200w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-380x135.png 380w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-255x90.png 255w, https:\/\/cdn.itpiran.net\/2024\/03\/21124952\/python_dictionary_example_output-550x195.png 550w\" ><br \/>\n\u0646\u062a\u06cc\u062c\u0647<\/h2>\n<p>\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0628\u0631\u0627\u06cc \u0627\u0645\u0631\u0648\u0632 \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a. \u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0647\u0631 \u0642\u0637\u0639\u0647 \u06a9\u062f \u0631\u0627 \u0631\u0648\u06cc \u062f\u0633\u062a\u06af\u0627\u0647 \u062e\u0648\u062f \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0641\u0642\u0637 \u06a9\u067e\u06cc \u067e\u06cc\u0633\u062a \u0646\u06a9\u0646\u06cc\u062f. \u0633\u0639\u06cc \u06a9\u0646\u06cc\u062f \u062e\u0637\u0648\u0637 \u06a9\u062f \u0631\u0627 \u062e\u0648\u062f\u062a\u0627\u0646 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"\u7b80\u4ecb\uff1aPython \u6570\u636e\u7c7b\u578b\u7528\u4e8e\u5b9a\u4e49\u53d8\u91cf\u7684\u7c7b\u578b\u3002\u672c\u6587\u5c06\u6db5\u76d6\u6240\u6709 Python \u6570\u636e\u7c7b\u578b\u2026\u2026","protected":false},"author":1,"featured_media":15052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363],"tags":[376,366],"class_list":{"0":"post-15044","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"tag-python","10":"tag-366"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/python-data-types-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0646\u0648\u0639 \u0645\u062a\u063a\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0645\u0627 \u062a\u0645\u0627\u0645&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/python-data-types-2\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T09:28:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\",\"datePublished\":\"2024-03-21T09:28:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/\"},\"wordCount\":15,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/03\\\/21125701\\\/Python-data-types.jpg\",\"keywords\":[\"Python\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/\",\"name\":\"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/03\\\/21125701\\\/Python-data-types.jpg\",\"datePublished\":\"2024-03-21T09:28:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/03\\\/21125701\\\/Python-data-types.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/03\\\/21125701\\\/Python-data-types.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/python-data-types-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/zh\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python \u6570\u636e\u7c7b\u578b - ITPiran \u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/python-data-types-2\/","og_locale":"zh_CN","og_type":"article","og_title":"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0646\u0648\u0639 \u0645\u062a\u063a\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0645\u0627 \u062a\u0645\u0627\u0645&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/zh\/tutorials\/python-data-types-2\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-03-21T09:28:55+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646","datePublished":"2024-03-21T09:28:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/"},"wordCount":15,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg","keywords":["Python","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/","name":"Python \u6570\u636e\u7c7b\u578b - ITPiran \u535a\u5ba2","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg","datePublished":"2024-03-21T09:28:55+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/03\/21125701\/Python-data-types.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/python-data-types-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran\u535a\u5ba2","description":"\u4f0a\u6717\u53ef\u6301\u7eed\u8d38\u6613\u65b0\u95fb\u548c\u6587\u7ae0","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"\u4f0a\u6717\u53ef\u6301\u7eed\u5546\u4e1a\u535a\u5ba2","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"\u884c\u653f","url":"https:\/\/www.itpiran.net\/blog\/zh\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/comments?post=15044"}],"version-history":[{"count":2,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15044\/revisions"}],"predecessor-version":[{"id":15051,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/posts\/15044\/revisions\/15051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/media\/15052"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/media?parent=15044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/categories?post=15044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/zh\/wp-json\/wp\/v2\/tags?post=15044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}