def register(name,sex,age,edu): with open('student_msg.txt','a') as f1: f1.write(f'{name},{sex},{age},{edu}\n') n,s,a,e = input('输入姓名、性别、年龄、学历,并以逗号隔开' ...
分类:
其他好文 时间:
2020-05-10 01:07:35
阅读次数:
145
while循环语句 age = 50guss_age = int(input("请输入您猜测的年龄:"))while guss_age !=age: if guss_age > age: print("您猜大了:请重试!") else: print("您猜小了:请重试!") guss_age = i ...
分类:
编程语言 时间:
2020-05-09 18:44:33
阅读次数:
76
业务逻辑漏洞 基础知识补充: User Agent User Agent中文名为用户代理,简称 UA,它是一个特殊字符串头,使得服务器能够识别客户使用的 "操作系统" 及版本、CPU 类型、 "浏览器" 及版本、浏览器渲染引擎、浏览器语言、 "浏览器插件" 等。 例:微信的: 常见的user age ...
分类:
其他好文 时间:
2020-05-09 01:11:41
阅读次数:
498
git 2 es基本查询 3 es 组合查询 python 多个条件,and ,or ,not 对到es中就是布尔查询,must,should,must_not,filter 1 组合查询之must 查询form gu和age=30的数据 GET lqz/doc/_search { "query": ...
分类:
移动开发 时间:
2020-05-08 22:43:39
阅读次数:
84
什么是YAML? https://www.cnblogs.com/mindzone/p/12849789.html 复合结构的语法 一个标配JavaBean public class Person { private String name; private Integer age; private ...
分类:
编程语言 时间:
2020-05-08 18:37:43
阅读次数:
91
1.根据下图所示,对print_info里的代码进行实现definfo(name,age,sex,hobblie):print(‘‘‘-------------------------info------------------------------Name:%sAge:%sSex:%sHobblie:%s--------------------end----------------------
分类:
编程语言 时间:
2020-05-07 09:19:26
阅读次数:
243
一、字典的特点 """ 字典:通过键对象,获取对应的值 特点:“键”是任意不可变数据,比如:整数,浮点数,字符串,元组 但是:列表、字典,集合这些可变对象,不能作为键使用,并且“键”不能重复 """ 二、字典的创建 2.1 第一种方式 # 第一种方式 a1 = {'name':'chu','age' ...
分类:
编程语言 时间:
2020-05-06 19:29:33
阅读次数:
73
一、俗称集合嵌套就是集合套集合 二、分析 Map集合的嵌套 自定义一个类: public class Person { private String name; private int age; public Person() { //有参和无参构造 super(); } public Person ...
分类:
其他好文 时间:
2020-05-06 18:11:47
阅读次数:
68
什么是结构体 结构体是用户定义的类型,表示若干个字段(Field)的集合。 结构体的声明 例如声明一个人, 有年龄age, 身高height, 体重weight, 可以将这三个属性组合在一起 type People struct { age int weight int height int } 上 ...
分类:
编程语言 时间:
2020-05-06 17:59:18
阅读次数:
63
第一种: for......in const obj = { id:1, name:'zhangsan', age:18 } for(let key in obj){ console.log(key + ' ' + obj[key]) } 输出结果: 第二种: 1)、Object.keys(obj) ...
分类:
Web程序 时间:
2020-05-06 11:47:37
阅读次数:
54