<?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> &#187; python</title>
	<atom:link href="http://www.liguosong.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liguosong.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 May 2018 01:02:19 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>python 变量</title>
		<link>http://www.liguosong.com/2014/07/17/python-%e5%8f%98%e9%87%8f/</link>
		<comments>http://www.liguosong.com/2014/07/17/python-%e5%8f%98%e9%87%8f/#comments</comments>
		<pubDate>Thu, 17 Jul 2014 04:02:04 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=330</guid>
		<description><![CDATA[变量命名： 首字母必须是字母或者下划线，后面的字符可以是字母、数字、下划线 赋值： python中的变量不需要 [...]]]></description>
				<content:encoded><![CDATA[<p>变量命名：<br />
首字母必须是字母或者下划线，后面的字符可以是字母、数字、下划线<span id="more-330"></span></p>
<p>赋值：<br />
python中的变量不需要声明类型(跟php一样)；变量的赋值操作既是变量的声明和定义的过程。变量在内存中创建包括变量的标识，名称和数据这些信息。例如：</p>
<pre class="brush:python">#!/usr/bin/env python
count = 10
print "value:%d \nmemeroy address:%d"%(count,id(count))

count = 11
print "\nvalue:%d \nmemeroy address:%d"%(count,id(count))</pre>
<p>输出：</p>
<pre class="brush:python">value:10 
memeroy address:140515656913712

value:11 
memeroy address:140515656913688</pre>
<p>从输出结果可以看出，在给count进行新的赋值后，重新为count开辟了一个新的内存地址。注：id函数可以获取变量的内存地址。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2014/07/17/python-%e5%8f%98%e9%87%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python hello world</title>
		<link>http://www.liguosong.com/2014/07/17/python-hello-world/</link>
		<comments>http://www.liguosong.com/2014/07/17/python-hello-world/#comments</comments>
		<pubDate>Thu, 17 Jul 2014 03:41:27 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=327</guid>
		<description><![CDATA[简介： 官方介绍是： Python是一种简单易学，功能强大的编程语言，它有高效率的高层数据结构，简单而有效地实 [...]]]></description>
				<content:encoded><![CDATA[<p>简介：<br />
官方介绍是：<br />
Python是一种简单易学，功能强大的编程语言，它有高效率的高层数据结构，简单而有效地实现面向对象编程。它简洁的语法和对动态输入的支持，再加上解释性语言的本质，使得它在大多数平台上的许多领域都是一个理想的脚本语言，特别适用于快速的应用程序开发。<span id="more-327"></span><br />
主要特点:<br />
1.面向过程，面向对象<br />
2.语法简单，易学易用<br />
3.模块丰富，功能强大<br />
4.跨平台，具有可移植性<br />
5.具有很好的扩展性</p>
<p>简单、易学、免费开源、高层语言、可移植性、解释性、面向对象、可扩展性、可嵌入型、丰富的库</p>
<p>之前看过一些python的书籍，也只是停留在了解的程度上，现在就写一个hello world的程序吧。程序员经典的程序。将如下内容保存到hello.py的文件中。(前提是需要安装python环境)</p>
<pre class="brush:python">#!/usr/bin/env python
print 'Hello world'</pre>
<p>解释一下：</p>
<p>第一行是指定文件的执行程序。给文件加上执行权限。在终端上直接执行hello.py文件。Hello world出现了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2014/07/17/python-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>golang,java,python,nodejs,php计算斐波那契数列速度对比</title>
		<link>http://www.liguosong.com/2013/07/27/golangjavapythonnodejsphp%e8%ae%a1%e7%ae%97%e6%96%90%e6%b3%a2%e9%82%a3%e5%a5%91%e6%95%b0%e5%88%97%e9%80%9f%e5%ba%a6%e5%af%b9%e6%af%94/</link>
		<comments>http://www.liguosong.com/2013/07/27/golangjavapythonnodejsphp%e8%ae%a1%e7%ae%97%e6%96%90%e6%b3%a2%e9%82%a3%e5%a5%91%e6%95%b0%e5%88%97%e9%80%9f%e5%ba%a6%e5%af%b9%e6%af%94/#comments</comments>
		<pubDate>Sat, 27 Jul 2013 13:19:25 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=178</guid>
		<description><![CDATA[同样的程序，这五种语言速度对比。java速度最快，其次golang，nodejs，python，php。在这里 [...]]]></description>
				<content:encoded><![CDATA[<p>同样的程序，这五种语言速度对比。java速度最快，其次golang，nodejs，python，php。在这里php，python已经与前面的语言不在同一个级别了。据说python可以在速度上优化一下，但我现在还处于对python了解阶段。并没有过多的深入研究。<span id="more-178"></span>不说了，上图：</p>
<p><a href="http://www.liguosong.com/wp-content/uploads/2013/07/fibNumber-test副本.jpg"><img class="alignnone size-full wp-image-182" alt="fibNumber-test副本" src="http://www.liguosong.com/wp-content/uploads/2013/07/fibNumber-test副本.jpg" width="640" height="514" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2013/07/27/golangjavapythonnodejsphp%e8%ae%a1%e7%ae%97%e6%96%90%e6%b3%a2%e9%82%a3%e5%a5%91%e6%95%b0%e5%88%97%e9%80%9f%e5%ba%a6%e5%af%b9%e6%af%94/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
