<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_42619413的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/weixin_42619413</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; weixin_42619413]]></copyright><item><title><![CDATA[Python »     Documentation » The Python Tutorial »8 Errors and Exceptions]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81990500</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81990500</guid><author>weixin_42619413</author><pubDate>Fri, 24 Aug 2018 01:15:33 +0800</pubDate><description><![CDATA[8. Errors and Exceptions

Until now error messages haven’t been more than mentioned, but if you have tried out the examples you have probably seen some. There are (at least) two distinguishable kinds ...]]></description><category></category></item><item><title><![CDATA[Python »     Documentation » The Python Tutorial »input and output]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81909300</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81909300</guid><author>weixin_42619413</author><pubDate>Tue, 21 Aug 2018 16:03:05 +0800</pubDate><description><![CDATA[7. Input and Output

There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the...]]></description><category></category></item><item><title><![CDATA[Python 3.7»     Documentation » The Python Tutorial »]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81751270</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81751270</guid><author>weixin_42619413</author><pubDate>Fri, 17 Aug 2018 01:35:10 +0800</pubDate><description><![CDATA[6. Modules

If you quit from the Python interpreter(解释器) and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer program...]]></description><category></category></item><item><title><![CDATA[循环语句常用技巧]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81638182</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81638182</guid><author>weixin_42619413</author><pubDate>Mon, 13 Aug 2018 22:16:20 +0800</pubDate><description><![CDATA[一、通过切片实现循环迭代访问列表时直接修改列表的值
例如：
words=[&quot;cat&quot;,&quot;window&quot;,&quot;defenstrate&quot;]
for w in words[:]：
    if len(w)&amp;gt;6:
        words.insert(0,w)
print(words)
如下案例就没有利用切片直接通过循环在循环内修改，程序就会卡住无法运行
words=[&quot;cat&quot;,&quot;window...]]></description><category></category></item><item><title><![CDATA[Data Structures]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81637644</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81637644</guid><author>weixin_42619413</author><pubDate>Mon, 13 Aug 2018 21:39:48 +0800</pubDate><description><![CDATA[5. Data Structures

This chapter describes some things you’ve learned about already in more detail, and adds some new things as well.

5.1. More on Lists

The list data type has some more methods. Her...]]></description><category></category></item><item><title><![CDATA[The Python Tutorial  4]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592787</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592787</guid><author>weixin_42619413</author><pubDate>Sun, 12 Aug 2018 00:47:17 +0800</pubDate><description><![CDATA[4. More Control Flow Tools

Besides the while statement just introduced, Python knows the usual control flow statements known from other languages, with some twists.

4.1. if Statements

Perhaps the m...]]></description><category></category></item><item><title><![CDATA[The Python Tutorial（教程）3]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592518</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592518</guid><author>weixin_42619413</author><pubDate>Sun, 12 Aug 2018 00:43:18 +0800</pubDate><description><![CDATA[3. An Informal（非正式） Introduction to Python

In the following examples, input and output are distinguished by ( 被区分)the presence or absence of prompts (&amp;gt;&amp;gt;&amp;gt; and …): to repeat the example, you m...]]></description><category></category></item><item><title><![CDATA[The Python Tutorial（教程）2]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592217</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81592217</guid><author>weixin_42619413</author><pubDate>Sat, 11 Aug 2018 23:46:00 +0800</pubDate><description><![CDATA[2. Using the Python Interpreter

2.1. Invoking(调用) the Interpreter

The Python interpreter is usually installed（安装） as /usr/local/bin/python3.7 on those machines where it is available; putting /usr/lo...]]></description><category></category></item><item><title><![CDATA[The Python Tutorial（教程）]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81571083</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81571083</guid><author>weixin_42619413</author><pubDate>Sat, 11 Aug 2018 00:16:19 +0800</pubDate><description><![CDATA[The Python Tutorial（教程）

Python is an easy to learn, powerful programming language. It has efficient（有效的） high-level data structures and a simple but effective approach（途径） to object-oriented programm...]]></description><category></category></item><item><title><![CDATA[python3.7 socket 下载服务段的文件]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81332051</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81332051</guid><author>weixin_42619413</author><pubDate>Wed, 01 Aug 2018 15:45:57 +0800</pubDate><description><![CDATA[
服务器段代码
__author__ = 'Administrator'
import socket,time

host=&quot;localhost&quot;
port=9090
addr=(host,port)
server=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server.bind(addr)
server.listen(6)
while Tr...]]></description><category></category></item><item><title><![CDATA[python3.7 使用socket实现TCP简单实现ssh]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81294897</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81294897</guid><author>weixin_42619413</author><pubDate>Tue, 31 Jul 2018 01:16:48 +0800</pubDate><description><![CDATA[
客户端
import socket
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect((&quot;localhost&quot;,9090))
while True:
    cmd=input(&quot;&amp;gt;&amp;gt;:&quot;).strip().encode(&quot;utf_8&quot;)
    if cmd is not None and ...]]></description><category></category></item><item><title><![CDATA[socket下载文件]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81278379</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81278379</guid><author>weixin_42619413</author><pubDate>Mon, 30 Jul 2018 01:20:21 +0800</pubDate><description><![CDATA[
客户端脚本
__author__ = 'Administrator'
'''
创建socket
连接服务器
用户输入下载命令
罚送数据到服务器段
接收服务器段发回的数据
保存到一本地一个新的文件
'''
import socket
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect((&quot;localhost&quot;...]]></description><category></category></item><item><title><![CDATA[python3 使用socket实现简单的tcp单个进程之间的通信]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81277154</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81277154</guid><author>weixin_42619413</author><pubDate>Sun, 29 Jul 2018 23:21:07 +0800</pubDate><description><![CDATA[
#以下代码是客户段代码
import socket
clinet=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
clinet.connect((&quot;localhost&quot;,9090))
while True:
    date=input(&quot;请输入你要发送给消息：&quot;)
    if  date is None:
        break
    ...]]></description><category></category></item><item><title><![CDATA[正则表达式2]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81161086</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81161086</guid><author>weixin_42619413</author><pubDate>Mon, 23 Jul 2018 00:33:57 +0800</pubDate><description><![CDATA[
本文参照python 核心编程第一章正则表达式
#1、match函数的使用
import re
m=re.match(&quot;foo&quot;,&quot;foo&quot;)
if m is not None:
    print(m.group())
'''
match  如果匹配成功，返回一个匹配对象，不成功则返回None
如果我们不使用if判断就使用m.group(),在匹配不成功时就会抛出异常
import re
m=...]]></description><category></category></item><item><title><![CDATA[python3正则表达式]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81125170</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81125170</guid><author>weixin_42619413</author><pubDate>Fri, 20 Jul 2018 01:13:51 +0800</pubDate><description><![CDATA[
#############################常见正则表达式和特殊符号（元字符）###########################
import re
1、直接使用字符串中的值进行匹配
str1=&quot;87alalsdkj34878273\nalkjsldkjfalsdjalksd2klajlfkasjlkdf&quot;
print(re.match(&quot;al&quot;,str1)) #从 字符匹配串...]]></description><category></category></item><item><title><![CDATA[Socket Programming HOWTO]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81074133</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81074133</guid><author>weixin_42619413</author><pubDate>Tue, 17 Jul 2018 00:23:02 +0800</pubDate><description><![CDATA[Socket Programming HOWTO
************************

Author:
   Gordon McMillan


Abstract
^^^^^^^^

Sockets are used nearly everywhere, but are one of the most severely
misunderstood technologies aroun...]]></description><category></category></item><item><title><![CDATA[ipaddress.txe]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81073501</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81073501</guid><author>weixin_42619413</author><pubDate>Mon, 16 Jul 2018 23:38:50 +0800</pubDate><description><![CDATA[An introduction to the ipaddress module
***************************************

author:
   Peter Moody

author:
   Nick Coghlan


Overview
^^^^^^^^

This document aims to provide a gentle introductio...]]></description><category></category></item><item><title><![CDATA[python 时间模块]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81066297</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81066297</guid><author>weixin_42619413</author><pubDate>Mon, 16 Jul 2018 15:41:52 +0800</pubDate><description><![CDATA['''
本文源自：https://www.cnblogs.com/renpingsheng/p/6965044.html
 1.时间戳(timestamp)的方式：通常来说，时间戳表示的是从1970年1月１日开始按秒计算的偏移量(time.gmtime(0))
    此模块中的函数无法处理1970纪元年以前的时间或太遥远的未来(处理极限取决于C函数库，对于32位系统而言，是2038年)
 2.U...]]></description><category></category></item><item><title><![CDATA[IO.py]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81058982</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81058982</guid><author>weixin_42619413</author><pubDate>Mon, 16 Jul 2018 01:02:10 +0800</pubDate><description><![CDATA[16.2. &quot;io&quot; --- Core（核心） tools for working with streams（数据流）
**************************************************

**Source code（代码）:** Lib/io.py
源代码
=====================================================...]]></description><category></category></item><item><title><![CDATA[pythone IO.py 文件源代码]]></title><link>https://blog.youkuaiyun.com/weixin_42619413/article/details/81058513</link><guid>https://blog.youkuaiyun.com/weixin_42619413/article/details/81058513</guid><author>weixin_42619413</author><pubDate>Mon, 16 Jul 2018 01:00:01 +0800</pubDate><description><![CDATA[#io 模块主要是提供了用于处理数据流的核心工具
'''
数据流：
    文本数据流 txt i/o
    二进制数据流 binary io
    原始数据流 raw io
'''
#创建文本流的方式
#方式1
import io
f = io.StringIO(&quot;some initial text data&quot;)
f.close()
#方式2
f=open(&quot;a.txt&quot;,&quot;r&quot;,encod...]]></description><category></category></item></channel></rss>