main.py
Costs 1 credit
加载编辑器中...
输出 Output执行成功
# 运行代码后,输出将显示在这里 # 按 Ctrl+Enter 快速运行
Terminal (Simulated)Install commands are simulated only, no real network requests
$
Step 1: 提取邮箱地址
使用 re.findall 从文本中提取所有邮箱。
Self-Check List
- 导入 re
- 编写邮箱 regex
- 输出匹配结果
Transfer Template
import re text = "Contact: alice@example.com, bob@test.com"
After completing this step, you should be able to independently explain and reproduce this concept, then apply it to similar problems.