18: Re-discussion of print--formatted output in Python

Source: Internet
Author: User

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/9C/5C/wKioL1lvTniQoNmLAADo7qHXZ2k595.png-wh_500x0-wm_ 3-wmp_4-s_938396800.png "title=" Untitled. png "alt=" wkiol1lvtniqonmlaado7qhxz2k595.png-wh_50 "/>

What to do if there is a prompt statement in front of the output result

18.1Decimal Value Output

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9C/5C/wKioL1lvTpeBbV4ZAAHS6XT1VE0983.png-wh_500x0-wm_ 3-wmp_4-s_1126558383.png "title=" Untitled. png "alt=" wkiol1lvtpebbv4zaahs6xt1ve0983.png-wh_50 "/>

%d represents the decimal output,%s represents the variables to be exported, they cannot have commas (,) .

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/9C/5C/wKiom1lvTtSDCrcEAAF1csMk4r8837.png-wh_500x0-wm_ 3-wmp_4-s_4019769902.png "title=" Untitled. png "alt=" wkiom1lvttsdcrceaaf1csmk4r8837.png-wh_50 "/>

18.2character Output

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9C/5C/wKiom1lvTvGiwhx3AAFFLy8YbNo357.png-wh_500x0-wm_ 3-wmp_4-s_736386866.png "title=" Untitled. png "alt=" wkiom1lvtvgiwhx3aaffly8ybno357.png-wh_50 "/>

What is the input output (%x) of the system ?

What is the 8 binary output (%o) ?

What is the 2 binary output (%b) ?

What is the character output (%c) ?


This article is from the "13088633" blog, please be sure to keep this source http://13098633.blog.51cto.com/13088633/1949085

18: Re-discussion of print--formatted output in Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.