I began to write it today to learn python blog

Install python and pycharm

1. Add a label

#/usr/bin/env pyhon

#Author: xiaoxingxing

2. Comment

'' ': Comment multiple lines

  : Print multiple lines

name = "xiaoxingxing"
msg = '''
name2 =name
print("My name is ",name,name2)
name = "paochege"
#print(name,name2)
'''
print(msg)

Single and double quotes the same effect, only difference when used simultaneously,

eg : msg = “I’m xiaoxingxing” 

Guess you like

Origin www.cnblogs.com/xiaoxingxing01/p/12163219.html