0 basic Science python-5.1 Digital Brief introduction

Source: Internet
Author: User

1. Create a numeric object and assign a value

a=1# integer b=1.1# floating point c=1.23e5# real d=1.23+4.56j# imaginary number


2. Updating numeric objects

Note: Because the numeric object is immutable, it is better to remove the variable name from an object and paste it into a new object.


From being able to see even though the same assignment is 1000, the IDs of the two are different, representing different objects, just the same value.


3. Delete a Numeric object

According to the 2nd, in fact the so-called deletion is actually not the use of that numerical object, assuming strict deletion, then need to use del this keyword


After running the Del operation, a actually no longer exists, so print error. Say a doesn't define



Here we are, thank you.

------------------------------------------------------------------

Click the jump 0 Basic python-folder



0 basic Science python-5.1 Digital Brief introduction

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.