Placeholder issues in Python
阿神
阿神 2017-05-18 10:55:27
0
1
777

Is this what the script means? - means there are two digits. If there are less than two digits, a space will be automatically added as a placeholder; d also means two digits, and 0 is used here as a placeholder.

阿神
阿神

闭关修行中......

reply all (1)
左手右手慢动作

%(name)[width].[precision]typecode

(name) is a named
flags can have +,-,' or 0. + means right alignment. - means left alignment. '˜' is a space, which means padding a space to the left of the positive number to align it with the negative number. 0 means use 0 padding.
width represents the display width
precision represents the precision after the decimal point

The%02d表示用0padding here is filled with spaces by default. For details, please refer to string formatting (% operator)

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!