有没有办法在python中将字符串分成单独的单词?

时间:2019-06-22 16:22:05

标签: python

我正在尝试将长字符串分成不同的单词,然后在同一行上以0.1秒的延迟打印出来。

1 个答案:

答案 0 :(得分:0)

您可以根据它们之间的间隔进行分割:

$ curl api.mysite.com/v2 -v
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 123.123.123.123...
* TCP_NODELAY set
* Connected to api.mysite.com (123.123.123.123) port 80 (#0)
> GET /v2 HTTP/1.1
> Host: api.mysite.com
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Mon, 24 Jun 2019 00:01:44 GMT
< Content-Length: 21
< Content-Type: text/plain; charset=utf-8
< Via: 1.1 google
<
{ [21 bytes data]
100    21  100    21    0     0     21      0  0:00:01 --:--:--  0:00:01   333
* Connection #0 to host api.mysite.com left intact
default backend - 404
相关问题