20180410python Notes-tony Teacher lectures

Source: Internet
Author: User
Tags stdin

20180410python notes -tony Teacher Lectures

Print (' Tanzhou %s,%s in class, number of classes %d (' classroom ', ' Tony ', ' 363 ')

Practice Error Logging:

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Microsoft Windows [ version 6.1.7601]

All rights reserved (c) Microsoft Corporation. All rights reserved.

C:\users\administrator>python3

Python 3.6.5 (V3.6.5:F59C0932B4, Mar 2018, 17:00:18) [MSC v.1900-bit (AMD6

4)] on Win32

Type "Help", "copyright", "credits" or "license" for more information.

>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' An Tony ', 3636 ')

File "<stdin>", line 1

Print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ', ' An Tony ', 3636 ")

^

Syntaxerror:invalid syntax

>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' Antony ', 3636 ')

File "<stdin>", line 1

Print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom '), ' Antony ', 3636 ')

^

Syntaxerror:invalid syntax

>>> print (' Tanzhou %s,%s in class , number of classes %d '% (' classroom ') , ' Antony ', ' 363 ')

...

...

... ^z

C:\users\administrator>python3

Python 3.6.5 (V3.6.5:F59C0932B4, Mar 2018, 17:00:18) [MSC v.1900-bit (AMD6

4)] on Win32

Type "Help", "copyright", "credits" or "license" for more information.

>>> print (' Tanzhou %s,%s in class, class number %d (' classroom ', 'Tony','363')' )

File "<stdin>", line 1

Print (' Tanzhou %s,%s in class, class number %d (' classroom ',' Tony','363')

^

Syntaxerror:invalid character in identifier

>>> A

Just keep listening.

Print ("Tony1+tony2:", Tony1+tony2)

Print ("tony1*2:", tony1*2)

Print (Tony1

def find (self, sub, Start=none, End=none)

\\\ start index, end index

Print (' Tanzhou ')

Keep listening.

20180410python Notes-tony Teacher lectures

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.