摘要: # ### Number ( int float bool complex) 1.int 整型 (正整数 0 负整数)intvar = 1print(intvar) # type 获取值的类型res = type(intvar)print(res) # id 获取一个值的地址res = id(int 阅读全文
posted @ 2020-06-30 23:18 iR-Poke 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1.注释的作用:对代码的解释,方便以后阅读代码 2.常用的快捷键:ctrl+q:notepad++的注释ctrl+/:pycharm的注释ctrl+c:复制ctrl+v:粘贴ctrl+z:撤销ctrl+y:反撤销 3.单行注释(使用'#')例子:# python 2.x print "今天下雨了"# 阅读全文
posted @ 2020-06-30 23:11 iR-Poke 阅读(136) 评论(0) 推荐(0) 编辑