005 python语法

/*
时间:2018/09/29
目录: 
  一: print
          1 使用
          2 查看
  二: 语法 
          1 整型
          2 浮点型
      3 布尔类型
          4 字符串
*/ 

一: print
  1 使用

# coding:utf-8

print("hello world")    # 打印 - hello world
# Result
hello world

Process finished with exit code 0
# coding:utf-8
name = "ZhangSan"
age = 27

print("%s age is %r" %(name, age))    # 打印 - 字符串和数字
# Result
ZhangSan age is 27

Process finished with exit code 0

  2 查看


二: 语法
  1 整型
  2 浮点型
  3 布尔类型
  4 字符串

猜你喜欢

转载自www.cnblogs.com/huafan/p/9726317.html
005