How to get the same results from string.start_with? and string[ ]?

前端 未结 0 981
后悔当初
后悔当初 2020-11-22 14:40

Basically, I want to check if a string (main) starts with another string (sub), using both of the above methods. For example, following is my code:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题