当前位置:网站首页>Openjudge: filter extra spaces
Openjudge: filter extra spaces
2022-07-28 05:36:00 【Programmer system】
describe
There may be multiple consecutive spaces in a sentence , Filter out the extra space , Just leave a space .
Input
a line , A string ( Length not exceeding 200), There are no spaces at the beginning and the end of a sentence .
Output
Filtered sentences .
The sample input
Hello world.This is c language.
Sample output
Hello world.This is c language.
Code
s = input().split()
for i in s:
print(i, end=" ")边栏推荐
猜你喜欢

Test Development - UI testing in automated testing

IDEA使用dev-tool实现热部署

ES6 new variable modifiers let and const, new basic data type symbol

自定义Json返回数据

restFul接口使用个人总结

Edge calculation kubeedge+edgemash

Digital twin solutions inject new momentum into the construction of chemical parks

Fusiongan code learning (I)

Bean的作用域、执行流程、生命周期

JMeter related knowledge sorting
随机推荐
visio如何快速生成相同的图案,生成图像矩阵
Thinking on multi system architecture design
[singleton mode] thread safety of lazy mode
BigDecimal rounds and retains two decimal places
lamda 获取当前循环数,AtomicInteger
Mybats foreach multi select query, index loop, and cancel the and/or tag
docker 部署 mysql5.7.35
restFul接口使用个人总结
MySQL uses list as a parameter to query
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
Share several methods of managing flag bits in C program
MySQL basic query
Advanced assignment method of ES6 -- Deconstruction assignment
蒙特卡罗方法求解圆周率π并用turtle画点,以及完成进度条问题
图像增强评价指标学习之——结构相似性SSIM
接口幂等性问题
多线程进阶:volatile的作用以及实现原理
IDEA配置 service(Run Dashboard) 服务,多模块同时启动
项目中问题合集
BeanUtils.copyProperties无法复制不同List集合问题解决 Lists.transform函数