#!/usr/bin/python
#coding=utf-8
#文件名:BasicGrammer
if True:
print"看样子变量是对的";
else:
print"情况不妙,变量错了";
##多行语句##
#我们常常使用\将一行语句分为多行显示
item_one=item_two=item_three=1;
total = item_one +\
item_two +\
item_three
##python引号##
word = 'word'
##python引号##
word = 'word'
sentence = "This is a sentence"
paragraph = 'Im a paragraph
i have many sentence'
##python空行##
#函数之间/类的方法之间/类和函数的入口//
#作用:分割不同含义/功能的代码,便于维护和重构
##等待用户输入##
raw_input("按下Enter退出,其他任意键显示\n")
python多行语句,引号的用法及空行
最新推荐文章于 2024-08-14 21:45:00 发布