How can I get the next string, in alphanumeric ordering, in Python?

前端 未结 4 881
走了就别回头了
走了就别回头了 2021-01-05 23:02

I need a simple program that given a string, returns to me the next one in the alphanumeric ordering (or just the alphabetic ordering).

f(\"aaa\")=\"aab\"
f(         


        
4条回答
  •  不知归路
    2021-01-05 23:40

    Are the answers at How would you translate this from Perl to Python? sufficient? Not 100% what you're asking, but close...

提交回复
热议问题