摘要: 用户交互 等待用户操作后再执行程序 示例 name = input ("what's your name") print("hello" , name) name = input("what's your name?") age = input("How old are you?") hometow 阅读全文
posted @ 2018-05-29 00:20 当丁响 阅读(107) 评论(0) 推荐(0)
摘要: 作用 变量是存储数据后被调用,标记并描述数据,变量是信息的容器。核心作用就是标记和存储数据。 声明变量 name="allen" 变量定义规则 变量只能是字母,数字或下划线的任意组合 变量名的第一个字符不能是数字 被Python定义过的关键字不能声明为变量 官方推荐变量名与等号和赋值之间需要有空格 阅读全文
posted @ 2018-05-28 22:44 当丁响 阅读(114) 评论(0) 推荐(0)