string = "heLLo hOw are you toDay"
results = string.find("[A-Z]") <----- Here is my problem
string.lower().translate(table) <--- Just for the example.
>>>string
"olleh woh era uoy yadot"
#here i need to make the characters that where uppercase, be uppercase again at the same index number.
>>>string
"olLEh wOh era uoy yaDot"
i 需要找到上述等级的上限指数编号,并找到一个指数编号(或不管怎样)的清单,以便再次在座标上使用,使上层特征与指数编号相同。
maybe i can solve it the the re module, but i didn t find it any option to give me back the index numbers. hope it understandable, i have done a research but couldn t find solution to it. Thanks.
BTW, i is using python 3. 页: 1