product_list =[('Iphonex',8300), ('Moto',6900), ('Mac Pro',18900), ('Latte',30), ('Mix',3999)] yourSalary = input("Please print your Salary:") shoppin ...
分类:
其他好文 时间:
2017-09-20 20:55:05
阅读次数:
144
对于p:nth-child选择器,选择一个元素如果: 对于p:nth-of-type选择器,选择一个元素如果: :nth-of-type选择器,限制条件少 ...
分类:
Web程序 时间:
2017-09-20 15:00:20
阅读次数:
193
注意: jQuery实现:nth-child(n)是严格来自CSS规范,所以n值是“索引”,也就是说,从1开始计数,:nth-child(index)从1开始的,而eq(index)是从0开始的 ...
分类:
Web程序 时间:
2017-09-18 14:58:40
阅读次数:
222
一数字1、整型int作用:年纪,等级,身份证号,qq号等整型数字相关定义:age=10#本质age=int(10)2、浮点型float作用:薪资、身高、体重、体质参数等浮点数相关salary=11.2#本质salary=float(11.2)二字符串‘‘作用:名字、性别、国籍、地址等描述信息定义:在单引号/双引号/三引..
分类:
编程语言 时间:
2017-09-16 19:00:11
阅读次数:
225
product_list=[
(,),
(,),
(,)
]
shopping_list=[]
salary=()
salary.isdigit():
salary=(salary)
:
index,item(product_list):
(index,item)
user_choice=()
user_choice.isdigit():
user_choice=(user_choice)
user_choice<(product_list)user_choice>=:
p_item=produ..
分类:
其他好文 时间:
2017-09-16 11:52:44
阅读次数:
136
1、运用css3的nth-child(3n): 2、运用margin负值(该方法可以兼容老版浏览器): ...
分类:
Web程序 时间:
2017-09-15 13:46:57
阅读次数:
280
package com.bdqn.memento; /** * 源发器类 * @author OU * */ public class Emp { private String ename; private int age; private double salary; //进行备忘操作,并返回备忘 ...
分类:
编程语言 时间:
2017-09-15 02:04:43
阅读次数:
241
有对象的地方就会存在比较,就像小时候每次拿着考卷回家,妈妈都会问你隔壁的那谁谁谁考了多少分呀。下面我们也来举个简单的例子,就是有几个人的Salary列表。我们根据基本工资来进行罗列: class Program { static void Main(string[] args) { ArrayLis... ...
分类:
其他好文 时间:
2017-09-14 16:42:52
阅读次数:
189
拼接: name=zhuhuan age=23 salary=333 info=''' info of %s age:%s name:%s salary:%s %(name,age,name,salary) ''' info2=''' info of {_name} age:{_age} name: ...
分类:
编程语言 时间:
2017-09-13 22:15:06
阅读次数:
151
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice ver ...
分类:
其他好文 时间:
2017-09-13 19:19:45
阅读次数:
162