![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python基础操作
文章平均质量分 51
再说就烦了
善于摸鱼和划水
展开
-
Python学习笔记(五)
Python学习笔记(五)本文章记录学Python过程中遇到的书写规范问题。PEP 8: block comment should start with ‘#’PEP 8: expected 2 blank lines, found 1Remove redundant parenthesesPEP 8: missing whitespace after ‘,’PEP 8: no newline at end of file...原创 2021-07-30 17:25:44 · 122 阅读 · 0 评论 -
Python学习笔记(三)
Python学习笔记(三)1.字符串字符串常见操作(待补充)2.列表①定义一个列表②列表的“增”③列表的“删”④列表的“改”⑤列表的“查”⑥列表的排序⑦综合应用原创 2021-07-21 21:49:50 · 85 阅读 · 0 评论 -
Python学习笔记(二)
Python学习笔记(二)1.print标准化输出2.print格式化输出3.input输入语句和强制转换4.if条件语句5.random随机数生成函数6.for循环语句7.while循环语句求和break语句continue语句原创 2021-07-20 21:36:44 · 106 阅读 · 0 评论 -
Python学习笔记(一)
Python学习笔记(一)一、在控制面板编写运行python程序二、在Pycharm编写运行python程序一、在控制面板编写运行python程序1. 进入python:点击开始,打开“cmd”面板,输入“python”后回车即可进入python页面;2. 退出python:方式一:输入exit()后回车;方式二:Ctrl键+Z键;3. 输入Import this可得到“python之禅”诗一首;4. 输出字符串:print(“×××××”),输出变量:print();5. 运行.py文件:跳原创 2021-07-20 21:15:45 · 230 阅读 · 0 评论