摘要: a = 'python'print('hello,', a or 'world')b = ''print ('hello,', b or 'world')print('-----------------------------------')创建listL = ['Adam',95.5,'Lisa',85,'Bart',59]print('创建list:',L)print('-----------... 阅读全文
posted @ 2017-11-22 21:45 彭于晏码分晏 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 太难割舍,前三名并列吧!Top #1智能补全:Ctrl+Shift+Space Top #1自我修复:Alt+Enter Top #1重构一切:Ctrl+Shift+Alt+TTop #10切来切去:Ctrl+Tab Top #9选你所想:Ctrl+W Top #8代码生成:Template/Postfix +Tab Top #7发号施令:Ctrl+Shift+A Top #6无处藏身... 阅读全文
posted @ 2017-11-22 10:47 彭于晏码分晏 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 变量数据类型整数型浮点型字符串布尔值空值编辑器中输入:print 45678 + 0x12fd2print 'Learn Python in Book'print 100 < 99print 0xff == 255运行结果:123456Learn Python in BookFalseTrueprint语句编辑器中输入:print 'hello,python'print 'hello,','pyt... 阅读全文
posted @ 2017-11-22 10:45 彭于晏码分晏 阅读(410) 评论(0) 推荐(0) 编辑