当前位置:网站首页>openjudge:过滤多余的空格
openjudge:过滤多余的空格
2022-07-28 05:18:00 【编程器系统】
描述
一个句子中也许有多个连续空格,过滤掉多余的空格,只留下一个空格。
输入
一行,一个字符串(长度不超过200),句子的头和尾都没有空格。
输出
过滤之后的句子。
样例输入
Hello world.This is c language.
样例输出
Hello world.This is c language.
代码
s = input().split()
for i in s:
print(i, end=" ")边栏推荐
- visio如何精确控制图形的大小和位置及角度
- MySQL adds sequence number to query results
- The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
- C language characters and strings
- repackag failed: Unable to find main class
- ByteBuffer.position 抛出异常 IllegalArgumentException
- About MySQL group_ What concat has to say
- block yandex bot
- Classes and objects [medium]
- Digital twin solutions inject new momentum into the construction of chemical parks
猜你喜欢

Distillation model diagram

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

Digital twin technology creates visual application of smart mine

Mysql基本查询

多线程进阶:synchronized底层原理,锁优化、锁升级的过程

自定义Json返回数据

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

Database date types are all 0

ECCV22 最新54篇论文主图整理

Multi module packaging: package: XXX does not exist
随机推荐
Lamda gets the current number of cycles, atomicinteger
多线程进阶:锁的策略
sql 查询list时两次的数据不一致,自动加上了limit
BigDecimal rounds and retains two decimal places
C language: some self realization of string functions
低照度图像数据集
IDEA使用dev-tool实现热部署
You must configure either the server or JDBC driver (via the ‘serverTimezone)
Mysql基本查询
动态卷积的本质
PC side bug record
接口幂等性问题
论文模型主图范例
架构设计思考合集
MySQL adds sequence number to query results
21 day SQL punch in summary
Digital twin technology creates visual application of smart mine
24小时内的时间段无交叉
2022 summer practice (PowerDesigner tutorial learning record) (first week)
子父线程交互