<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python3 &#8211; moneyslow.com</title>
	<atom:link href="https://moneyslow.com/tag/python3/feed" rel="self" type="application/rss+xml" />
	<link>https://moneyslow.com</link>
	<description>making money with technology</description>
	<lastBuildDate>Tue, 17 Oct 2023 00:59:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
	<item>
		<title>Ubuntu22.04下如何用源代码安装python3</title>
		<link>https://moneyslow.com/ubuntu22-04%e4%b8%8b%e5%a6%82%e4%bd%95%e7%94%a8%e6%ba%90%e4%bb%a3%e7%a0%81%e5%ae%89%e8%a3%85python3.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Tue, 17 Oct 2023 00:59:39 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[python3]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=16698</guid>

					<description><![CDATA[如何安装python3]]></description>
		
		
		
			</item>
		<item>
		<title>python 如何记住运算优先级</title>
		<link>https://moneyslow.com/python-%e5%a6%82%e4%bd%95%e8%ae%b0%e4%bd%8f%e8%bf%90%e7%ae%97%e4%bc%98%e5%85%88%e7%ba%a7.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Fri, 29 Mar 2019 01:11:15 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python3]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=8569</guid>

					<description><![CDATA[PEMDAS 这个简称来辅助记忆，它的意思是“括号（Parentheses）、指数（Exponents）、乘（Multiplication）、除（Division）、加（Addition）、减（Subtraction)“，这也是 Python 里的运算优先级。一个常见的错误是人们以为 PEMDAS 是一个绝对次序，需要依次进行，其实乘除是一级，从左到右，然后加减是一级，从左到右，所以你可以把 PEMDAS 写成 PE (M&#38;D) (A&#38;S）。]]></description>
		
		
		
			</item>
		<item>
		<title>Python 3中bytes与string的区别 文本总是用unicode进行编码以str类型表示而二进制数据以bytes类型表示</title>
		<link>https://moneyslow.com/python-3%e4%b8%adbytes%e4%b8%8estring%e7%9a%84%e5%8c%ba%e5%88%ab-%e6%96%87%e6%9c%ac%e6%80%bb%e6%98%af%e7%94%a8unicode%e8%bf%9b%e8%a1%8c%e7%bc%96%e7%a0%81%e4%bb%a5str%e7%b1%bb%e5%9e%8b%e8%a1%a8.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Thu, 20 Dec 2018 09:17:59 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[python3]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=8333</guid>

					<description><![CDATA[python 3中最重要的新特性可能就是将文本(text)和二进制数据做了更清晰的区分。文本总是用unicode进行编码，以str类型表示；而二进制数据以bytes类型表示。 在python3中，不能以任何隐式方式将str和bytes类型二者混合使用。不可以将str和bytes类型进行拼接，不能在str中搜索bytes数据(反之亦然)，也不能将str作为参数传入需要bytes类型参数的函数(反之亦然)。 字符串和字节符之间划分界线是必然的。下面这个图解要牢记于心： strings可以被编码(encode)成字bytes,bytes也可以解码(decode)成strings： &#62;&#62;&#62; '€20'.encode('utf-8') b'\xe2\x82\xac20' &#62;&#62;&#62; b'\xe2\x82\xac20'.decode('utf-8') '€20' 可以这样理解： string是文本(text)的抽象表示。字符串(string)由字符组成，字符也是抽象的实体且与任何二进制表示无关。 当操纵字符串的时候，很多细节是不用了解的。我们可以分割、切片和拼接字符串，在字符串内部进行搜索。但并不在乎内部是如何表示的，也不用在意底层一个字符要花费多少byte。 只有在需要将string编码(encode)成byte的时候，比如：通过网络传输数据；或者需要将byte解码(decode)成string的时候，我们才会关注string和byte的区别。 &#160; 传入encode和decode的参数是编码方式。编码是一种用二进制数据表示抽象字符的方式。目前有很多种编码。上面给出的UTF-8是其中一种，下面是另一种： &#62;&#62;&#62; '€20'.encode('iso-8859-15') b'\xa420' &#62;&#62;&#62; b'\xa420'.decode('iso-8859-15') '€20' 编码是这个转换过程中至关重要的一部分。若不编码，bytes对象b'\xa420'只是一堆比特位而已。编码赋予其含义。采用不同的编码，这堆比特位的含义就会大不同： &#62;&#62;&#62; b'\xa420'.decode('windows-1255') '₪20' &#160; https://eli.thegreenplace.net/2012/01/30/the-bytesstr-dichotomy-in-python-3 相关阅读： https://moneyslow.com/mac%E4%B8%8Bpycharm%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8.html]]></description>
		
		
		
			</item>
		<item>
		<title>python3中取消了raw_input()</title>
		<link>https://moneyslow.com/python3%e4%b8%ad%e5%8f%96%e6%b6%88%e4%ba%86raw_input.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Wed, 14 Nov 2018 01:58:54 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[python3]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=8316</guid>

					<description><![CDATA[python3中取消了raw_input()]]></description>
		
		
		
			</item>
	</channel>
</rss>
