
python
文章平均质量分 67
漂亮的他不说话
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于python字符和编码的初级认识
文章转自知乎https://www.zhihu.com/question/54933434/answer/216435738Python中%是什么意思?如何使用? - 虾米的回答 - 知乎https://www.zhihu.com/question/54933434/answer/216435738Python中%是什么意思?如何使用? - 虾米的回答 - 知乎https://www.zhihu....转载 2018-03-13 21:22:39 · 176 阅读 · 0 评论 -
python错误集
今天学习python的时候运行文件名称xuexi.py运行内容链接中名为“”学习中“”同学内容https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431664106267f12e9bef7ee14cf6a8776a479bdec9b9000代码如下name =input('请...原创 2018-03-13 21:38:20 · 170 阅读 · 0 评论 -
PYthon单引号,双引号使用02
Python支持单引号和双引号同时使用,顺序无所谓>>> "Let's go!""Let's go!">>> '"Hello, world!" she said''"Hello, world!" she said'Python不支持嵌套单引号>>> 'Let's go!'S转载 2019-02-15 13:19:48 · 762 阅读 · 0 评论 -
Python解释器01
apuser@bjzktmp02u:~$ pythonPython 2.7.3 (default, Oct 26 2016, 21:01:49) [GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> exit()apuser@bjzk...原创 2019-02-13 16:19:45 · 146 阅读 · 0 评论 -
python-通用的序列+列表操作
序列:索引:序列中的所有元素都有编号——从0开始递增>>> greeting = 'Hello'>>> greeting[0]'H'切片:访问特定范围内的元素>>> tag = '<a href="http://www.python.org">Python web site</a&g原创 2019-02-26 14:56:02 · 238 阅读 · 0 评论 -
Python-循环
while:x = 1while x <= 100:print(x)x += 1for:numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] for number in numbers: print(number) 内置函数range:>>> range(0, 10)range(0, 10)>&g...原创 2019-02-26 17:10:07 · 200 阅读 · 0 评论