python learning summary ---- common problems encountered


raw_input("xxx"): In python 3.x and later versions, raw_input is cancelled and input("xxxxx") is used instead

list function: create a list from a string

For example: list('hello') gets ['h','e','l','l','o']


How to output without wrapping:

Method: in each print(xxx,end=""), end="" can make the output not wrap

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325443345&siteId=291194637