Pro Git 2nd Edition 2.1.413simple example. We have a super simple Ruby file that prints 'hello world'. #! /usr/bin/env ruby def hello puts 'hello world' end hello() In our repository, we create a new branch named whitespace Then we change the line “hello world” to “hello mundo”. $ git checkout -b whitespace Switched to a new branch 'whitespace' $ unix2dos hello.rb unix2dos: converting file hello.rb to DOS format ... $ git commit -am 'Convert hello.rb to DOS' [whitespace 3270f76] Convert hello.rb to DOS 1 file changed, 7 insertions(+), 7 deletions(-) $ vim hello.rb $ git diff -b diff --git a/hello.rb b/hello.rb index ac51efd0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 simple example. We have a super simple Ruby file that prints 'hello world'. #! /usr/bin/env ruby def hello puts 'hello world' end hello() In our repository, we create a new branch named whitespace Then we change the line “hello world” to “hello mundo”. $ git checkout -b whitespace Switched to a new branch 'whitespace' $ unix2dos hello.rb unix2dos: converting file hello.rb to DOS format ... $ git commit -am 'Convert hello.rb to DOS' [whitespace 3270f76] Convert hello.rb to DOS 1 file changed, 7 insertions(+), 7 deletions(-) $ vim hello.rb $ git diff -b diff --git a/hello.rb b/hello.rb index ac51efd0 码力 | 691 页 | 13.35 MB | 1 年前3
WeRoBot 1.2.0 微信公众号开发框架文档索引 模块 | 下一页 | WeRoBot 1.2.0 文档 » WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 1.2.0 文档 » 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 70 页 | 82.33 KB | 1 年前3
Flask Documentation (1.1.x)and Decoding Yourself Configuring Editors Flask Extension Development Anatomy of an Extension “Hello Flaskext!” Initializing Extensions The Extension Code Using _app_ctx_stack Learn from Others Approved something like this: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' So what did that code do? 1. First we imported the Flask class. An instance particular function, and returns the message we want to display in the user’s browser. Just save it as hello.py or something similar. Make sure to not call your application flask.py because this would conflict0 码力 | 428 页 | 895.98 KB | 1 年前3
WeRoBot 1.3.0 微信公众号开发框架文档索引 模块 | 下一页 | WeRoBot 1.3.0 文档 » WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 1.3.0 文档 » 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 76 页 | 84.54 KB | 1 年前3
Pro Git 中文版 第2版 2.1.66我们有一个超级简单的打印 'hello world' 的 Ruby 文件。 #! /usr/bin/env ruby def hello puts 'hello world' end hello() 在我们的仓库中,创建一个名为 whitespace 的新分支并将所有 Unix 换行符 修改为 DOS 换行符, 实质上虽然改变了文件的每一行,但改变的都只是空白 字符。 然后我们修改行 “hello world” world” 为 “hello mundo”。 $ git checkout -b whitespace Switched to a new branch 'whitespace' $ unix2dos hello.rb unix2dos: converting file hello.rb to DOS format ... $ git commit -am 'converted hello.rb to converted hello.rb to DOS 1 file changed, 7 insertions(+), 7 deletions(-) $ vim hello.rb $ git diff -b diff --git a/hello.rb b/hello.rb index ac51efd..e85207e 100755 --- a/hello.rb +++ b/hello.rb @@ -10 码力 | 670 页 | 13.59 MB | 1 年前3
WeRoBot 1.4.0 微信公众号开发框架文档索引 模块 | 下一页 | WeRoBot 1.4.0 文档 » WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 1.4.0 文档 » 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 82 页 | 88.39 KB | 1 年前3
WeRoBot 1.6.0 微信公众号开发框架文档索引 模块 | 下一页 | WeRoBot 1.6.0 文档 » WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 1.6.0 文档 » 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 85 页 | 89.26 KB | 1 年前3
WeRoBot 1.5.0 微信公众号开发框架文档索引 模块 | 下一页 | WeRoBot 1.5.0 文档 » WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 1.5.0 文档 » 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 83 页 | 88.85 KB | 1 年前3
WeRoBot 1.6.0 微信公众号开发框架文档WeRoBot WeRoBot 是一个微信公众号开发框架。 入门 Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 Session 开启/关闭 Session Version 0.3.0 入门 Hello World 最简单的Hello World, 会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler 的返回值返回 给微信服务器。 在刚才的 Hello World 中, 我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息(0 码力 | 94 页 | 74.98 KB | 1 年前3
共 579 条
- 1
- 2
- 3
- 4
- 5
- 6
- 58













