Python3 字符串String Rstrip 方法
Python3 字符串String Rstrip 方法 #!/usr/bin/python3 str = " this is string example....wow!!! " print (str.rstrip()) str = "*****this is string example....wow!!!*****" print (str.rstrip('*'))
Python3 字符串String Rstrip 方法
#!/usr/bin/python3 str = " this is string example....wow!!! " print (str.rstrip()) str = "*****this is string example....wow!!!*****" print (str.rstrip('*'))
交流与评论