About Python Tutor

Source: Internet
Author: User

Python Tutor can visually display the object reference relationship.

URL is http://www.pythontutor.com/visualize.html

1) Edit code.

2) Run, can see the following interface.

This tool is cool and we can clearly see the reference relationship between object. When it is difficult to understand a certain point of knowledge, you can tap code to perform the observation.

Points of knowledge that can help:

1. The object that the reference points to is mutable or immutable.

For example, why don't we use a mutable list as a function parameter.

2. Scooping of variables. That is, scope.

Local variables, closure variables, global variables, built-in variables.

About Python Tutor

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.