#!/usr/bin/python
#Filename:var.py
i = 5
print(i)
i = i + 1
print(i)
s = '''This is a mutil-line string.
this is the second line'''
print(s)
结果:
[(4) root@Fedora~/Note/python]#./2var.py
5
6
This is a mutil-line string.
this is the second line
#这是对变量的使用
#其中定义变量 i为5,定义s为字符串,其中'''(三个单引号)可以定义一个多行的字符串,不需要进行转接符号 \
# s也可以这么定义: s = 'This is a mutil-line string. \
# this is the second line'