<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[relaying的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/relaying</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; relaying]]></copyright><item><title><![CDATA[Python3学习笔记：用列表实现多项选择菜单]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/105132948</link><guid>https://blog.youkuaiyun.com/relaying/article/details/105132948</guid><author>relaying</author><pubDate>Fri, 27 Mar 2020 06:23:09 +0800</pubDate><description><![CDATA[在python中没有switch - case语句，所以实现多项选择一般用if - leif 语句。
在python中，我们可以这样做：

def f1():
    dosomething
.
.
.
def fn():
    dosomething

fun_list = [f1, ... fn]
ch = input(‘input 0 -  9  :’)
ch = int(ch)
f = ...]]></description><category></category></item><item><title><![CDATA[Python3学习笔记：数据结构之字典]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/105027481</link><guid>https://blog.youkuaiyun.com/relaying/article/details/105027481</guid><author>relaying</author><pubDate>Sun, 22 Mar 2020 14:30:50 +0800</pubDate><description><![CDATA[字典也是Python的一种常用的数据结构，它用于存放具有映射关系的数据，如成绩表数据，语文：79，数学：80，英语：92。

Python 字典相当于保存了两组数据，其中一组数据是关键数据，被称为 key；另一组数据可通过 key 来访问，被称为 value。因此字典中的 key 不允许重复。

可使用花括号语法来创建字典，也可使用 dict() 函数来创建字典。


scores = {'语...]]></description><category></category></item><item><title><![CDATA[Python3学习笔记：Sqlite3数据库]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/105011033</link><guid>https://blog.youkuaiyun.com/relaying/article/details/105011033</guid><author>relaying</author><pubDate>Sat, 21 Mar 2020 15:59:39 +0800</pubDate><description><![CDATA[SQLite是一种嵌入式数据库，它的数据库就是一个文件。由于SQLite本身是C写的，而且体积很小，所以，经常被集成到各种应用程序中。
Python就内置了SQLite3，所以，在Python中使用SQLite，不需要安装任何东西，直接使用。
要操作关系数据库，首先需要连接到数据库，一个数据库连接称为Connection；
连接到数据库后，需要打开游标，称之为Cursor，通过Cursor执行SQ...]]></description><category></category></item><item><title><![CDATA[Python3学习日记：数据结构之列表和元组]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/104714526</link><guid>https://blog.youkuaiyun.com/relaying/article/details/104714526</guid><author>relaying</author><pubDate>Sat, 07 Mar 2020 16:02:36 +0800</pubDate><description><![CDATA[序列是Python中最基本的数据结构。序列中的每个元素都分配一个数字 - 它的位置，或索引，第一个索引是0，第二个索引是1，依此类推。

Python有6个序列的内置类型，但最常见的是列表和元组。

序列都可以进行的操作包括索引，切片，加，乘，检查成员。

此外，Python已经内置确定序列的长度以及确定最大和最小的元素的方法。

一、列表（list）

列表是最常用的Python数据类型，它可以...]]></description><category></category></item><item><title><![CDATA[Python3学习日记：流程控制]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/104710678</link><guid>https://blog.youkuaiyun.com/relaying/article/details/104710678</guid><author>relaying</author><pubDate>Sat, 07 Mar 2020 11:16:30 +0800</pubDate><description><![CDATA[一、分支结构


# if 语句
if 表达式
  语句块

# if ... else 语句
if 表达式：
    语句块
else：
    语句块

# if ... elif ... else 语句
if 表达式：
    语句块
elif 表达式：
    语句块
else：
    语句块


二、循环结构

1、while循环


while 表达式
    语句块
    
...]]></description><category></category></item><item><title><![CDATA[Python3学习日记：基础语法]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/104692522</link><guid>https://blog.youkuaiyun.com/relaying/article/details/104692522</guid><author>relaying</author><pubDate>Fri, 06 Mar 2020 11:55:48 +0800</pubDate><description><![CDATA[标识符

第一个字符必须是字母表中字母或下划线_。
	标识符的其他的部分由字母、数字和下划线组成。
	标识符对大小写敏感。
	不能使用关键字作为标识符
Python关键字


['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', '...]]></description><category></category></item><item><title><![CDATA[Python3学习日记：变量与基本数据类型]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/104688978</link><guid>https://blog.youkuaiyun.com/relaying/article/details/104688978</guid><author>relaying</author><pubDate>Fri, 06 Mar 2020 11:12:06 +0800</pubDate><description><![CDATA[一、变量

Python 中的变量不需要声明。每个变量在使用前都必须赋值，变量赋值以后该变量才会被创建。

在 Python 中，变量就是变量，它没有类型，我们所说的"类型"是变量所指的内存中对象的类型。

等号（=）用来给变量赋值。

等号（=）运算符左边是一个变量名,等号（=）运算符右边是存储在变量中的值。例如：


counter = 10
miles   = 650.5
name    =...]]></description><category></category></item><item><title><![CDATA[C51单片机实现六位数码管时钟]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/52621547</link><guid>https://blog.youkuaiyun.com/relaying/article/details/52621547</guid><author>relaying</author><pubDate>Thu, 22 Sep 2016 12:05:50 +0800</pubDate><description><![CDATA[//六位数码管时钟
//C语言代码：
//main.c
#include 
typedef unsigned int UINT  ;
typedef unsigned char UCHAR	;
#define KEY P2
#define KEYMASK   0x07  
sbit LE1 = P2^6;  //定义位控口			
sbit LE2 = P2^7;  //定义段控口
UCHAR]]></description><category></category></item><item><title><![CDATA[C语言四种排序算法完整程序]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/52618814</link><guid>https://blog.youkuaiyun.com/relaying/article/details/52618814</guid><author>relaying</author><pubDate>Thu, 22 Sep 2016 09:36:51 +0800</pubDate><description><![CDATA[C语言四种排序算法完整程序  
包含冒泡排序、插入排序、选择排序  
主程序设计了菜单可以反复无限次调用查看运行结果  
由于使用了随机数列，每次的待排序数列都不一样#include <stdio.h>
#include <stdlib.h>
#include <time.h>//产生随机数组
void gen_array(int arr[],int n)
{
    int i;
    unsi]]></description><category></category></item><item><title><![CDATA[C语言读写二进制流]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/49429799</link><guid>https://blog.youkuaiyun.com/relaying/article/details/49429799</guid><author>relaying</author><pubDate>Mon, 26 Oct 2015 21:09:54 +0800</pubDate><description><![CDATA[看了网上好多二进制文件读写，简单是简单，但是语焉不详，好多同学都在问度娘，赫夫曼编码如何存入二进制文件，鄙人通过潜心研究，总结诸多大侠的片言只语，终于通关，实现了这一功能。首先声明，本人只是在学习C语言，不能跟专业人士相提并论，老鸟不要拍砖。 
原理是用一组掩码与要读出或写入的字符进行位运算，逐个写入或输出二进制码流。 
没有注释，懒得写，抱歉。。。 
下面上源码：#include <stdio.h]]></description><category></category></item><item><title><![CDATA[二叉树的建立与遍历（C语言简单实现）]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/49406561</link><guid>https://blog.youkuaiyun.com/relaying/article/details/49406561</guid><author>relaying</author><pubDate>Sun, 25 Oct 2015 20:49:23 +0800</pubDate><description><![CDATA[#include <stdio.h>
#include <stdlib.h>
#include <string.h>#define MAXSIZE 1024//二叉树节点
typedef struct tNode{
    char data;
    tNode *lchild;
    tNode *rchild;
}bitree;//调用函数声明
bitree * Create();
int]]></description><category></category></item><item><title><![CDATA[赫夫曼树和赫夫曼编码]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/49405941</link><guid>https://blog.youkuaiyun.com/relaying/article/details/49405941</guid><author>relaying</author><pubDate>Sun, 25 Oct 2015 19:48:43 +0800</pubDate><description><![CDATA[#include <stdio.h>#define MAXSIZE 128
//字符表
typedef struct {
    char ch;
    unsigned int repeat;
}table;//哈夫曼树节点
typedef struct {
    char data;
    unsigned int weight;
    int  parent,lchild, rchil]]></description><category></category></item><item><title><![CDATA[线性表顺序存储结构实验程序   Version 2.0]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/49027883</link><guid>https://blog.youkuaiyun.com/relaying/article/details/49027883</guid><author>relaying</author><pubDate>Sat, 10 Oct 2015 18:57:40 +0800</pubDate><description><![CDATA[线性表顺序存储结构实验程序

增加了数据排序功能，优化了输出程序和主菜单//*****************************************************
//线性表顺序存储结构实验程序
//2015.10.10 Version 2.0
//*****************************************************]]></description><category></category></item><item><title><![CDATA[线性表的顺序存储实验程序]]></title><link>https://blog.youkuaiyun.com/relaying/article/details/49011401</link><guid>https://blog.youkuaiyun.com/relaying/article/details/49011401</guid><author>relaying</author><pubDate>Sat, 10 Oct 2015 00:37:39 +0800</pubDate><description><![CDATA[线性表的顺序存储实验程序]]></description><category></category></item></channel></rss>