大小写交替

按指定规则交替改变字母大小写,生成类似 aLtErNaTiNg 的文本。

输入: 文本结果: 文本

文本输入

案例

Turn a line from the Zen of Python into alternating case

输入

Beautiful is better than ugly.

Expected answer

bEaUtIfUl Is BeTtEr ThAn UgLy.
Keep digits from consuming an alternating-case position

Letters alternate across spaces and digits; punctuation is unchanged.

输入

HTTP 404: Not Found

Expected answer

hTtP 404: nOt FoUnD
Continue the pattern across a two-line countdown

The case pattern does not reset at a newline.

输入

Ready?
3, 2, 1... Launch!

Expected answer

rEaDy?
3, 2, 1... LaUnCh!
Alternate accented letters in a French café caption

Accented letters count as letters, rather than punctuation.

输入

Café déjà vu!

Expected answer

cAfÉ dÉjÀ vU!
Keep emoji intact in a small screen-reader fixture

The emoji is preserved and does not advance the letter pattern.

输入

Read 📚 then RUN

Expected answer

rEaD 📚 tHeN rUn
AlternatingCaps: Basic Example

输入

Hello, world!

Expected answer

hElLo, WoRlD!

相关工具

实用工具

操作参考

查看原始技术文档 (English)