Home > other >  Bosses in the code parameter s: what is the meaning of STR?
Bosses in the code parameter s: what is the meaning of STR?

Time:09-16

 def reverseWords (s: STR) 
# Put you anwser here
Return the STR

CodePudding user response:

Type annotations, can prompt in pycharm
 
Def reverseWords (s: STR)
S.r eplace ()
Return the STR


Here the replace can only completion
Can only suggest additional annotations returns, etc

CodePudding user response:

Limit s type, this parameter can only be introduced into a string
  • Related