python输入一段英文新闻,单词之间用空格隔开,如果句中有标点符号,其后也用空格分隔。该行英文中可能包含0个或1个“and”,如果“and”在字符串中存在,请在and前插入单词Anna,并输出
时间: 2024-05-25 14:17:44 浏览: 35
python print 按逗号或空格分隔的方法
请输入一段英文新闻:
The United States and China are set to resume trade talks after a two-month hiatus. The negotiations will take place in Washington next week, with both sides hoping to make progress towards ending the ongoing trade war.
输出结果:
The United States Anna and China are set to resume trade talks after a two-month hiatus. The negotiations will take place in Washington next week, with both sides hoping to make progress towards ending the ongoing trade war.
阅读全文