這是源代碼:如何刪除使用python在兩個字符串中出現的字母?
def revers_e(str_one,str_two):
for i in range(len(str_one)):
for j in range(len(str_two)):
if str_one[i] == str_two[j]:
str_one = (str_one - str_one[i]).split()
print(str_one)
else:
print('There is no relation')
if __name__ == '__main__':
str_one = input('Put your First String: ').split()
str_two = input('Put your Second String: ')
print(revers_e(str_one, str_two))
如何刪除發生在從第一個字符串兩個字符串一個字母,然後打印出來?
'「」。加入(字母信str_one如果不信在str_two)' – njzk2