Process Control and process management

Source: Internet
Author: User

Process Control and process management
Process Control

-- Daoxin

Enter the user name for judgment

Name = input ("Enter the User name:") # Compare the value and memory address (the value is the same, and the memory does not have to be the same)

If name = "daoxin ":

Print ("Login successful ")

Else:

Print ("Logon Failed ")

 

Enter the user name and password for determination:

Import getpass

Name = input ("enter username:") # Compare values, compare memory addresses (same values, not the same memory), is values, and memory addresses are the same

Pwd = getpass. getpass ("enter the password :")

If name = "daoxin" and pwd = "123 ":

Print ("Login successful ")

Else:

Print ("Logon Failed ")

 

 

Output:

Enter the user name daoxin.

Enter the password:

Login successful

If IndentationError occurs during code execution, it indicates code indentation error.

 

Related Article

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.