当前位置:网站首页>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=" ")边栏推荐
猜你喜欢

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

repackag failed: Unable to find main class

多线程进阶:volatile的作用以及实现原理

latex和word之间相互转换

repackag failed: Unable to find main class

restFul接口使用个人总结
![[computer level 3 information security] overview of information security assurance](/img/f0/a72e61fda58ea93ca4e9db7274f6e3.png)
[computer level 3 information security] overview of information security assurance

visio如何快速生成相同的图案,生成图像矩阵

Tomato timing dimming table lamp touch chip-dlt8t10s-jericho

Long和Integer如何进行比较,为什么报错
随机推荐
IO流的使用
使用深度学习训练图像时,图像太大进行切块训练预测
New methods and features of ES6 built-in objects
Advanced assignment method of ES6 -- Deconstruction assignment
科研论文写作方法:在方法部分添加分析和讨论说明自己的贡献和不同
sql 查询list时两次的数据不一致,自动加上了limit
Class class added in ES6
ArrayList多线程安全解决办法
IDEA使用dev-tool实现热部署
ssm项目快速搭建项目配置文件
GET与POST区别
When SQL queries the list, the data is inconsistent twice, and limit is automatically added
MySQL practice 45 lectures
Response<T>类
How to compare long and integer and why to report errors
PyTorch 使用 MaxPool 实现图像的膨胀和腐蚀
多线程进阶:volatile的作用以及实现原理
docker 部署 mysql5.7.35
C language: some self realization of string functions
使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题