<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[m0_56419062的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/m0_56419062</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; m0_56419062]]></copyright><item><title><![CDATA[字符串格式化与文件处理]]></title><link>https://blog.youkuaiyun.com/m0_56419062/article/details/118058287</link><guid>https://blog.youkuaiyun.com/m0_56419062/article/details/118058287</guid><author>m0_56419062</author><pubDate>Sat, 19 Jun 2021 19:55:32 +0800</pubDate><description><![CDATA[一.字符串格式化
字符串的格式化有两种方式：百分号方式(较老)、format方式(先进)
1、百分号方式
%s万能的可以接收任意类型
msg = "i am %s, my hobby is %s" %('lif','alex')
print(msg)
%d只接收int数字类型
msg = "i am %s, age is %d" %('alex',18)
msg = "i am %(name)s, age is %(old)d"%({'name':'alex','old':18}) #传字典
print(.]]></description><category></category></item><item><title><![CDATA[运算符与基本数据类型]]></title><link>https://blog.youkuaiyun.com/m0_56419062/article/details/118030528</link><guid>https://blog.youkuaiyun.com/m0_56419062/article/details/118030528</guid><author>m0_56419062</author><pubDate>Fri, 18 Jun 2021 17:27:11 +0800</pubDate><description><![CDATA[运算符
1、算数运算符
+ - * /
取余数 %  取商的整数部分 // 幂 **

2、比较运算符
== 不等于!= &lt;&gt;  &gt; &lt; &gt;= &lt;=

3、赋值运算符
= += -= *= /= %= **=  //=
a=b
a+=c a=a+c
a-=c a=a-c
a*=c a=a*c
a/=c a=a/c %= **=  ...]]></description><category></category></item></channel></rss>