Office Tools v1.0.0

printf-tool

Format and print data with precise control over output format. Use for formatted output with padding, precision, and...

dinghaibin 更新于 2026-05-01 1 浏览
下载 SKILL

技能说明

Format and print data with precise control over output format. Use for formatted output with padding, precision, and type specifications.

使用场景

Format and display data using format specifiers similar to C printf. Supports string, integer, floating-point, and hexadecimal formatting with width and precision control.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/printf-tool
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

5 个文件 · 12 kB
SKILL.md text/markdown
---
name: printf-tool
description: Format and print data with precise control over output format. Use for formatted output with padding, precision, and type specifications.
---
# Printf - Formatted Output Utility

Format and display data using format specifiers similar to C printf. Supports string, integer, floating-point, and hexadecimal formatting with width and precision control.

## Usage
```bash
printf-tool <format> [arguments...]
```

## Common Format Specifiers

- `%s`: String
- `%d`: Integer
- `%f`: Floating point
- `%x`: Hexadecimal
- `%05d`: Zero-padded integer (5 digits)

## Examples

```bash
printf-tool "Name: %s, Age: %d" "Alice" 30
printf-tool "Price: $%.2f" 19.99
printf-tool "%010d" 42
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。