python-刷题--一、从字符串中删除子串 二、字符串循环右移n位

一、问题描述:从给定的字符串中删除指定的子字符串,例如将字符串“abcdefgh”中子串“cd”删除,并显示结果。python 个人python实现:app #!-*-coding:utf-8-*- import sys,os def delete_substr_method1(in_str, in_substr): start_loc = in_str.find(in_substr)
相关文章
相关标签/搜索