摘要: 1.src/ 创建messages.js 2.src/ index.js 3. npm run build 4.自动打包配置 --watch 阅读全文
posted @ 2017-03-15 16:49 涵叔 阅读(143) 评论(0) 推荐(0)
摘要: webpack 中文文档:http://www.css88.com/doc/webpack2/guides/code-splitting-require/ 1. 新建目录webpack/,新建index.js 和 index.html index.html index.js 2. npm init 阅读全文
posted @ 2017-03-15 15:51 涵叔 阅读(159) 评论(0) 推荐(0)
摘要: 1. 用'' , "" 表示 2. i'm ok 怎么表示 ? "i'm ok" 3. Learn "Python" 怎么表示? 'Learn "Python"' 4. Bob said "I'm OK". 怎么表示? 'Bob said \"I\'m OK\".' 阅读全文
posted @ 2017-03-15 13:16 涵叔 阅读(78) 评论(0) 推荐(0)
摘要: 在Python程序中,变量是用一个变量名表示,变量名必须是大小写英文、数字和下划线(_)的组合,且不能用数字开头 阅读全文
posted @ 2017-03-15 13:12 涵叔 阅读(74) 评论(0) 推荐(0)
摘要: # 阅读全文
posted @ 2017-03-15 02:56 涵叔 阅读(74) 评论(0) 推荐(0)
摘要: 1. print 字符串的2种打发 2. 打印数字 阅读全文
posted @ 2017-03-15 02:55 涵叔 阅读(82) 评论(0) 推荐(0)
摘要: 1.整数,1,100,-100 2.浮点数,1.2,1.25 3.字符串,'',"" 4.布尔值 a.True,Flase,注意大小写 and运算是与运算,只有所有都为 True,and运算结果才是 True。 or运算是或运算,只要其中有一个为 True,or 运算结果就是 True。 not运算 阅读全文
posted @ 2017-03-15 02:29 涵叔 阅读(76) 评论(0) 推荐(0)
摘要: 1. sudo easy_install pip 2. sudo pip install pylama 3. 创建文件hello.py 4. 终端cd到文件目录,执行python hello.py, 输出结果hello world 阅读全文
posted @ 2017-03-15 02:20 涵叔 阅读(582) 评论(0) 推荐(0)