<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Learner_Chen的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Learner_Chen</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Learner_Chen]]></copyright><item><title><![CDATA[Java Review 基础复习(二)]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/125548482</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/125548482</guid><author>Learner_Chen</author><pubDate>Thu, 30 Jun 2022 21:21:19 +0800</pubDate><description><![CDATA[这是一些基础的不能再基础的东西]]></description><category></category></item><item><title><![CDATA[Java Review 基础复习(一)]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/124491439</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/124491439</guid><author>Learner_Chen</author><pubDate>Fri, 29 Apr 2022 11:06:24 +0800</pubDate><description><![CDATA[主要是针对初学java的同学们一个基础性的复习，这是其中第一篇]]></description><category></category></item><item><title><![CDATA[Python 基础复习 Review_4_类]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/122768477</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/122768477</guid><author>Learner_Chen</author><pubDate>Wed, 02 Feb 2022 11:40:54 +0800</pubDate><description><![CDATA[Python中的类复习，你想创建什么类呢，是各种风格的雫雫吗~]]></description><category></category></item><item><title><![CDATA[Python 基础复习Review_3_函数]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/122461004</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/122461004</guid><author>Learner_Chen</author><pubDate>Wed, 12 Jan 2022 19:58:13 +0800</pubDate><description><![CDATA[目录



7、函数

1）定义函数

2）返回值

3）将函数存储在模块（module）中

7、函数

1）定义函数


# def函数定义，定义以冒号结尾
def greet_user(username):
# 自定义函数需自己来添加说明文档，必须是缩进后的第一行；使用help(函数名)可以查看函数的说明文档
    """显示简单的问候语"""
    print("Hello, "+username.title()+"!" )
greet_user('mary')
greet_user('eric]]></description><category></category></item><item><title><![CDATA[Python 基础复习Review_2]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/122053571</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/122053571</guid><author>Learner_Chen</author><pubDate>Tue, 21 Dec 2021 00:46:02 +0800</pubDate><description><![CDATA[用户输入和while循环

input函数，括号内为显示给用户查看的信息，类似print，无特殊含义。

while函数的执行逻辑：

while条件测试：值为ture则运行缩进代码。值为false则忽略缩进代码→再次回去执行条件测试，直到不符合条件测试while循环中止

1）函数input()的工作原理

函数input()让程序暂停运行，等待用户输入一些文本。获取用户输入后，Python将其储存在一个变量中，以方便使用。

使用input()时，Python将用户输入解读为字符串。

2）使用int(]]></description><category></category></item><item><title><![CDATA[Python 基础复习Review_1]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/121989975</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/121989975</guid><author>Learner_Chen</author><pubDate>Fri, 17 Dec 2021 10:06:59 +0800</pubDate><description><![CDATA[4、if语句

例子：


animals = ['cat', 'dog', 'woof']
​
for mammal in animals:
   if mammal == 'cat':
     print(mammal.upper())
   else:
     print(mammal.lower())

我非常中意喵，所以猫要大写，其它动物全部小写

1）注

1）搭配in检查存在性

2）比较运算符左右加空格





5、字典

1）使用字典

1）字典原理是键值对，每个键都...]]></description><category></category></item><item><title><![CDATA[Python 基础复习Review_0]]></title><link>https://blog.youkuaiyun.com/Learner_Chen/article/details/121948910</link><guid>https://blog.youkuaiyun.com/Learner_Chen/article/details/121948910</guid><author>Learner_Chen</author><pubDate>Wed, 15 Dec 2021 11:47:26 +0800</pubDate><description><![CDATA[目录



1、变量和简单数据类型

2、列表简介

3、操作列表

1、变量和简单数据类型

1）.字符串

首字母大写title（） ​ 全部大写upper（） ​ 全部小写lower（） ​ 格式 字符串变量.方法

2）.拼接

变量1+“”+变量2 或 “变量1”+“变量2”

3）.使用制表符或换行符在字 符串中 添加空白

制表符 #缩进四个单位，等同于Tab \t ​ 换行符 #换行 \n ​ #两者可以结合使用

4）.删除额外的空白有利于比较两个字符串是否相同

格式 需要删除末尾空白的]]></description><category></category></item></channel></rss>