【发布时间】:2022-11-04 00:26:40
【问题描述】:
Text = input(">> Please, Enter The Text: ")
index_X = input(">> Please, Enter The index_X which you want to remove from 'Text': ")
print(Text.remove(index_X))
我尝试使用替换方法 但我认为还有另一种方法
【问题讨论】:
-
欢迎来到 SO! python 中的
input()总是将string作为输入。
标签: python python-3.x