if else elif 语句实例:#定义一个变量age = 19#如果age小于等于18打印少年if age <= 18: print('少年')else:#如果age小于等于28打印青年 if age <= 28: print('青年')#如果age小于等于48打印青年 elif age <= ...
分类:
其他好文 时间:
2019-02-26 19:46:30
阅读次数:
160
姓名 年龄 性别 工作 {{item.name}} {{item.age}} {{item.sex}} ... ...
分类:
移动开发 时间:
2019-02-26 00:56:11
阅读次数:
688
postman 中form-data , x-www-form-urlencoded , raw ,binary的区别 1.form-data 可上传键值对也可以上传文件 2.x-www-form-urlencoded 将数据转化成键值对 例如name=python&age=3 3.raw 可以上传 ...
分类:
Web程序 时间:
2019-02-25 16:41:09
阅读次数:
327
```C++ include include include // STL using namespace std; //使用sort()函数必须加上 const int MAXN = 100010; struct TH{ char name[15]; int age; int money; }th ...
分类:
其他好文 时间:
2019-02-24 11:05:21
阅读次数:
160
1 prompt = "\nPlease tell me your age." 2 prompt += "\nEnter 'quit' to end." 3 message = '' 4 switch = True 5 while switch: 6 7 message = input(prompt ...
分类:
其他好文 时间:
2019-02-24 00:56:17
阅读次数:
189
1 import urllib.request 2 import urllib.parse 3 import random 4 5 #目标地址 6 url="http://tieba.baidu.com/f" 7 8 #伪造客户端 http请求头 9 ua_list = [ 10 "User-Age... ...
分类:
其他好文 时间:
2019-02-23 12:11:49
阅读次数:
231
组合: 1 什么是组合 2. 为何要用组合 3. 如何用组合 class OldboyPeople: school = 'Oldboy' def __init__(self,name,age,sex,): self.name = name self.age = age self.sex = sex ...
分类:
其他好文 时间:
2019-02-21 21:35:36
阅读次数:
209
常用: let关键字: 1. 作用: * 与var类似, 用于声明一个变量2. 特点: * 在块作用域内有效 * 不能重复声明 * 不会预处理, 不存在提升3. 应用: * 循环遍历加监听 * 使用let取代var是趋势 1 //console.log(age);// age is not defi ...
分类:
其他好文 时间:
2019-02-21 18:46:27
阅读次数:
108
package com.yichang; import java.util.Scanner; //年龄类 public class Age { int age; public int getInt() { return age; } public void setInt (int age) thro... ...
分类:
其他好文 时间:
2019-02-21 18:44:31
阅读次数:
187
代码#AuthorKangclassPerson(object):#类的定义,object固定写法def__init__(self,name,age,job):#类的构造函数,即类的初始化self.Name=nameself.Age=ageself.Job=jobdefintroduce(self):#类的方法message=‘‘‘----------Information---------Nam
分类:
编程语言 时间:
2019-02-20 17:15:29
阅读次数:
145