摘要: import keyword print(keyword.kwlist)#关键字 print(len(keyword.kelist))#本人安装的python版本总共有35个关键字 阅读全文
posted @ 2020-08-12 22:31 王钻风 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1-variable 当你把一个值赋值给一个名字时,他会储存在内存中,把这块内存称之为variable。 注意:Python并不是把值存储在variable中,而是更像把名字贴在值得上面 (1)、在使用variable之前,必须对其赋值 (2)、变量名可以包括字母、数字、下划线,不能已数字开头(据说 阅读全文
posted @ 2020-08-12 19:27 王钻风 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Life is short ,You need Python -- Brce Eckel 这句话是Python社区的名言,翻译过来就是:人生苦短,我用Python。 Python学习就从这一句名言开始,希望自己坚持到底........ 阅读全文
posted @ 2020-08-12 19:11 王钻风 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 没看懂,正在研究 阅读全文
posted @ 2020-08-12 19:03 王钻风 阅读(83) 评论(0) 推荐(0) 编辑
摘要: from __future__ import bracesSyntaxError: not a chance 、 语法错误:没有机会 阅读全文
posted @ 2020-08-12 19:01 王钻风 阅读(140) 评论(0) 推荐(0) 编辑
摘要: import __hello__ 阅读全文
posted @ 2020-08-12 18:56 王钻风 阅读(151) 评论(0) 推荐(0) 编辑
摘要: import antigravity 导入 antigravity,浏览器会跳转到一副漫画网页 http://xkcd.com/353/,漫画非常有意思。 暂时还不知道怎么玩,有时间了研究下 阅读全文
posted @ 2020-08-12 18:49 王钻风 阅读(216) 评论(0) 推荐(0) 编辑
摘要: python 之禅 import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. 阅读全文
posted @ 2020-08-12 16:55 王钻风 阅读(225) 评论(0) 推荐(0) 编辑