列表4:字符串与列表
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
输入一行用逗号隔开的名字,转为列表;再输入一个分隔符,将列表所有名字用该分隔符拼接为字符串输出。
输入格式
第一行:逗号分隔的字符串
第二行:单个分隔符号
输出格式
一行拼接完成的字符串
input1
小红,小明,小丽
~
output1
小红~小明~小丽
Python暑假测试(袁)0901
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2026-7-17 9:15
- End at
- 2026-7-17 11:15
- Duration
- 2 hour(s)
- Host
- Partic.
- 4