Library Search
结果页Hello World — 爬取图书信息
在 技术栈 中找到 8 个匹配结果。
技术栈
技术栈
8 个 PHP # PHP Hello World 例程
## 目标
运行第一个 PHP 程序:输出 "Hello, World!" 并在浏览器中验证。
## 方式一:CLI 命令行
创建 `hello.php`:
```php
<?php
echo "Hello, World!\n";
echo "今天的日期是:" . date('Y-m-d') . "\n";
```
运行:
```bash
p… 3% RabbitMQ # RabbitMQ Hello World - Python (pika)
## 目标
演示最基本的消息发送(Producer)和接收(Consumer)流程,使用 Direct Exchange + 默认队列。
## 环境准备
```bash
pip install pika
```
## 完整代码
### 发送端(producer.py)
```python
import pika… 3% CodeIgniter curl http://localhost:8080/hello/World
# {"message":"Hello, World!","powered_by":"CodeIgniter 4"}
``` 3% Symfony ```bash
curl http://localhost:8000/api/hello
# {"message":"Hello, Vibe!","framework":"Symfony","php_version":"8.3.0","timestamp":"2024-01-01T00:00:00+00:00"}
curl http://localhost:8000/api/hello/Worl… 2% Slim ## Hello World:Slim 4 REST API
### 目标
创建 Slim 4 最小 REST API,展示路由、请求处理和 JSON 响应。
### 完整代码
**1. `public/index.php` — 入口文件**
```php
<?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\… 2% CakePHP der $builder) {
$builder->connect('/hello', ['controller' => 'Hello', 'action' => 'index']);
$builder->connect('/hello/{name}', ['controller' => 'Hello', 'action' => 'greet'])
->setPas… 2% Requests # Requests Hello World:GET 请求与 JSON 解析
## 目标
发送一个 GET 请求到公开 API,解析 JSON 响应,并处理常见 HTTP 状态码。
## 完整代码
```python
import requests
# 1. 基础 GET 请求
url = "https://api.github.com/repos/psf/requests"
respon… 2% Gatsby Post;
```
### 示例 MDX 文章 `content/posts/hello-world.mdx`
```mdx
---
title: "我的第一篇博客"
date: 2024-01-15
description: "使用 Gatsby 和 MDX 写博客就是这么简单"
---
# 你好,世界!
Gatsby 让静态博客变得简单而强大。
- ✅ **Markdown/MDX*… 2%