会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Monchie
博客园
首页
新随笔
联系
管理
订阅
2019年2月14日
python入门第四讲--比较运算符
摘要: 比较运算符包括 >, >=, <, <=, = =:如何比较数字的大小并求出其中的最大值请阅读原文
阅读全文
posted @ 2019-02-14 16:39 Monchie
阅读(129)
评论(0)
推荐(0)
2019年2月13日
python入门第三讲--用户交互
摘要: 今天写一个用户交互的小程序: death_age=100 name=input("your name:") age=input("your age:") #input接收的数据都是字符串,即便输入的是数字,依然会被当成字符串处理 print(type(age)) print("your name:",name) print("you can still live for:",death_age-int(age)," years...")
阅读全文
posted @ 2019-02-13 16:25 Monchie
阅读(96)
评论(0)
推荐(0)
python入门第二讲--I条件语句
摘要: if elif(即else if)的使用
阅读全文
posted @ 2019-02-13 13:33 Monchie
阅读(212)
评论(0)
推荐(0)
python入门第一讲--Hello world
摘要: 创建一个文件名为hello.py的文档: print “Hello,World!” print “Good!” 保存后执行:(以本人为例,我的hello.py文档保存在d:\MQ\computer\python_code文件夹下) 在cmd中输入python d:\MQ\computer\python_code\hello.py 回车输出: Hello,World! Good!
阅读全文
posted @ 2019-02-13 12:53 Monchie
阅读(251)
评论(0)
推荐(0)
公告