# 输入语句# print("hello word")counter = 100 # 整型变量miles = 1000.0 # 浮点型变量name = "runoob" # 字符串# print (counter)# print (miles)# print (name)'''python最具特色的就是应用缩进来示意代码块,不须要应用大括号 {}'''# if True:# print ("True")# else:# print ("False")# 数组total = ['item_one', 'item_two', 'item_three', 'item_four', 'item_five']# print(total)# 字符串word = '字符串'sentence = "这是一个句子。"paragraph = """这是一个段落,能够由多行组成"""'''字符串拼接print(word+sentence+paragraph)字符串换行拼接print(word+'\n'+sentence+'\n'+paragraph)输入 \n 并且不换行print(word+'\n'+sentence+r'\n'+paragraph)'''# input("\n\n按下 enter 键后退出。")# 同一行显示多条语句import sys; x = 'runoob'; sys.stdout.write(x + '\n')