摘要: if 语句是用来判断条件的真假,是否成立,如果为ture就执行,为flase则跳过 1.python用缩进表示代码的归属 2.同一缩进的代码,称之为代码块,默认缩进4个 if 语句结构 if 条件语句 代码块1 代码块2 代码块3 else: # 不能单独使用,必须和if,while,for配合使用 阅读全文
posted @ 2019-07-03 21:48 游走De提莫 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一:整型(int)和 浮点型(folat) int的定义:记录一些固定的数值如:电话号码、qq号、卡号 user_age_db=intput(int(18)) int('jason'): 会报错,(ValueError: invalid literal for int() with base 10) 阅读全文
posted @ 2019-07-03 21:47 游走De提莫 阅读(253) 评论(0) 推荐(0) 编辑