Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python knowledge learning

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

* * represents the nether operation

/ / indicates division and rounding

\ indicates escape

R "can be used to avoid escaping

Used to concatenate strings

The string * number indicates the number of copied strings

The variable [0] represents the first in the variable, and [1] is the second.

The variable [- 1] represents the penultimate one in the variable, and [- 2] is the penultimate one.

Endswith () ends with xx

Startswith () starts with xxx

Isdigit () True if the string contains only numbers, otherwise False

Len () returns the string length

Lower () converts all uppercase letters in a string to lowercase

Replace (old,new) replacement string

Rstrip () removes the space at the end of the string

Upper () converts lowercase to uppercase in a string

Append () add list item

List.append () adds a new object to the end of the list

List.sort () sorts the list

List.clear () empties the list

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report