当前位置:网站首页>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=" ")边栏推荐
- regular expression
- Performance test classification
- 子父线程交互
- First acquaintance with C language (1)
- Thinking on multi system architecture design
- 【idea插件神器】教你如何使用IDEA一键set实体类中所有属性
- yandex robots txt
- You must configure either the server or JDBC driver (via the ‘serverTimezone)
- JMeter related knowledge sorting
- C language: addition and deletion of linked list in structure
猜你喜欢

架构设计思考之一(SSO设计)

ByteBuffer. Position throws exception illegalargumentexception

First acquaintance with C language (2)

多模块打包:程序包:xxx不存在

Multi module packaging: package: XXX does not exist

ECCV22 最新54篇论文主图整理

7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces

自定义Json返回数据

How practical is the struct module? Learn a knowledge point immediately

JMeter related knowledge sorting
随机推荐
New modularity in ES6
mybaties foreach多选查询,index循环,取消and/or标签
Oracle创建表、删除表、修改表(添加字段、修改字段、删除字段)语句总结
openjudge:找出全部子串位置
FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
框架一步一步方便使用的流程
Feignclient calls the get method and reports an error resultvo{result= unknown exception. Exception details: request method 'post' not supported
多线程进阶:锁的策略
Response<T>类
Multi module packaging: package: XXX does not exist
pytorch使用hook获得特征图
JVM note 4: Memory Model
repackag failed: Unable to find main class
You must configure either the server or JDBC driver (via the ‘serverTimezone)
Localdatetime removes T, and jsonfield is invalid
openjudge:校园食宿预订系统
【MySQL】MySQL时区问题、数据库时间相差8小时问题解决
Image enhancement - msrcr
动态卷积的本质
接口幂等性问题