#!/usr/bin/env pyhton3
# -*- coding utf-8 -*-
#######################################################
#输入和输出
#######################################################
#利用print()来输出字符,输出的字符串内容需要用
#‘’或者“”括起来,也可以直接输出表达式或者函数的返回值
print("hello world")
print('100 + 200',100+ 200)
#使用input()函数来读取输入,并且把输入的数据赋值给变量
#print('you need input your name\n')
name = input('you need input your name\n')
print(name)
#在命令行中用'''...'''的格式表示多行内容
#在编写程序时可以不使用
print('''this is the first lin3
... this is the second line
... this is the third line''')
#在编写程序时可以不使用
print('''this is the first lin3
this is the second line
this is the third line''')
#格式化输出问题,基本和C语言的差不多
#%d 整数 %f浮点数 %s 字符串 %x十六进制数
print('my name is %s, i am %d years old'%('Lambor',23))
##占位符的设置也可C语言一样
s1 = 72
s2 = 85
r = (s2 / s1) - 1
print("r = %.1f" % (r))
#输出结果
r = 0.2