vlookup示例_VLOOKUP示例–如何在Excel中执行VLOOKUP
vlookup示例
Microsoft Excel includes a variety of different functions that help users with calculations of any kind. The functionality of Excel is so comprehensive that average users don't even take advantage of most utilities.
Microsoft Excel包括各种不同的功能,可以帮助用户进行任何类型的计算。 Excel的功能是如此全面,以至于普通用户甚至无法利用大多数实用程序。
However, if you often scroll through columns and rows looking for the same information, chances are that you will appreciate the VLOOKUP function. VLOOKUP, which stands for “vertical lookup,” can help you quickly find the data associated with a certain value that you enter.
但是,如果您经常在列和行中滚动以查找相同的信息,则很有可能会欣赏到VLOOKUP函数。 VLOOKUP代表“垂直查找”,可以帮助您快速查找与您输入的特定值关联的数据。
For example, you may have a table that contains products with unique IDs and prices. VLOOKUP can show you the price of a certain product if you enter its ID.
例如,您可能有一个表,其中包含具有唯一ID和价格的产品。 如果输入特定产品的ID,VLOOKUP可以向您显示其价格。
You can use VLOOKUP in many different ways and it will simplify your work significantly, especially when dealing with large tables.
您可以通过多种方式使用VLOOKUP,这将显着简化您的工作,尤其是在处理大型表时。
You don’t need to spend a lot of time looking for a certain cell because this function will find it for you. However, beginner users often find it difficult to set up VLOOKUP. Therefore, I decided to help you by preparing this detailed guide.
您无需花费大量时间来查找特定单元格,因为此功能将为您找到它。 但是,初学者经常会发现很难设置VLOOKUP。 因此,我决定通过准备此详细指南来帮助您。
什么是VLOOKUP? (What is VLOOKUP?)
First of all, VLOOKUP is a function. Therefore, if you’re new to Excel, you may want to familiarize yourself with some basic functions, like AVERAGE, SUM, or TODAY. This way it will be easy for you to understand how this function works.
首先,VLOOKUP是一个函数。 因此,如果您不熟悉Excel,则可能需要熟悉一些基本功能,例如AVERAGE,SUM或TODAY。 这样,您将很容易理解此功能的工作原理。
VLOOKUP is a database function, so it’s intended for database tables. Such tables are basically lists of different items. For instance, you may use this function when working with lists of products, employees, customers, etc.
VLOOKUP是数据库功能,因此适用于数据库表。 这样的表基本上是不同项目的列表。 例如,在处理产品,员工,客户等的列表时,可以使用此功能。
Let’s say, you have a list of products that consists of four columns. It might include the item code in the first column, the name or description of the product in the second column, and the price and the number of items available in stock in the third and fourth columns, respectively.
假设您有一个包含四列的产品列表。 它可能在第一列中包含商品代码,在第二列中包含产品名称或说明,并在第三列和第四列中分别包含价格和可用库存数量。
Database tables usually have some sort of unique identifier for each item. In this case, it’s the item code. This column is necessary for the VLOOKUP function to operate, and it must be the first column in your table.
数据库表通常对每个项目都有某种唯一标识符。 在这种情况下,它是商品代码。 该列是VLOOKUP函数运行所必需的,并且它必须是表中的第一列。
If you’re a beginner, the first thing you should do is to understand what exactly VLOOKUP does. Simply put, it shows information from a list or database based on the unique identifier entered by the user.
如果您是初学者,那么您应该做的第一件事就是了解VLOOKUP的确切功能。 简而言之,它根据用户输入的唯一标识符显示列表或数据库中的信息。
If we consider the example above, this function could show the price, description, or availability of a product based on its item code. What exactly it will show depends on the formula you write. VLOOKUP supports both exact and approximate matching, as well as wildcards for partial matches.
如果我们考虑上面的示例,此功能可以根据产品的物料代码显示产品的价格,描述或可用性。 具体显示什么取决于您编写的公式。 VLOOKUP支持精确和近似匹配,以及部分匹配的通配符。
VLOOKUP如何工作 (How VLOOKUP Works)
Here is the syntax for formulas that describe the VLOOKUP function:
这是描述VLOOKUP函数的公式的语法:
=VLOOKUP(value, table, column_index, [range])
=VLOOKUP(value, table, column_index, [range])
value
is what this function will look for in the first columnvalue
是此函数将在第一列中查找的value
table
is the table from which the function will retrieve the necessary informationtable
是函数将从中检索必要信息的表column_index
is the number of the column from which the function will retrieve the informationcolumn_index
是函数将从中检索信息的列号range
is a Boolean parameter that can be either TRUE or FALSE. TRUE is the default value, and it corresponds to approximate matching. FALSE will show you exact matches only.range
是布尔值参数,可以为TRUE或FALSE。 TRUE是默认值,它对应于近似匹配。 FALSE仅显示完全匹配。
Even the name of this function includes “vertical,” and VLOOKUP is only intended for tables where data is organized in vertical columns. Therefore, if you’re organizing your data horizontally, this function will be useless. In this case, you can use a similar function for horizontal lookup — HLOOKUP.
甚至此函数的名称都包括“ vertical”,而VLOOKUP仅适用于在垂直列中组织数据的表。 因此,如果您要水平组织数据,则此功能将无用。 在这种情况下,可以对水平查找使用类似的功能-HLOOKUP 。
You should also keep in mind that this function only works from left to right. In other words, if the unique identifier is not in the first column of your table, the function won’t be able to retrieve information from the columns to the left of the identifier.
您还应该记住,此功能仅从左到右起作用。 换句话说,如果唯一标识符不在表的第一列中,则该函数将无法从标识符左侧的列中检索信息。
Every column has its number, and all columns are numbered from left to right. If you want to obtain a value from a certain column, you should specify its number in your formula. In the formula template above, this number is called column_index
.
每列都有其编号,所有列均从左到右编号。 如果要从某个列中获取值,则应在公式中指定其编号。 在上面的公式模板中,此数字称为column_index
。
For instance, if you want to retrieve the name of the product from the example above, the column index should be 2.
例如,如果要从上面的示例中检索产品名称,则列索引应为2。
As I've already mentioned above, the VLOOKUP function supports two matching modes: approximate and exact. This parameter is the fourth argument in the formula. Approximate matching is set by default. If you want to choose exact matching, you should set the lookup range to FALSE
.
如前所述,VLOOKUP函数支持两种匹配模式:近似和精确。 此参数是公式中的第四个参数。 默认情况下设置近似匹配。 如果要选择完全匹配,则应将查找范围设置为FALSE
。
Therefore, both of the formulas below will retrieve data using approximate matching:
因此,以下两个公式都将使用近似匹配来检索数据:
=VLOOKUP(value, table, column_index)
=VLOOKUP(value, table, column_index)
=VLOOKUP(value, table, column_index, TRUE)
=VLOOKUP(value, table, column_index, TRUE)
As you can see, if you want to use the exact match mode you should be careful. If you don’t provide any lookup range value, the function will still use the approximate match mode.
如您所见,如果您想使用完全匹配模式,则应该小心。 如果您不提供任何查找范围值,该函数仍将使用近似匹配模式。
The following formula will force the exact matching mode:
以下公式将强制使用完全匹配模式:
=VLOOKUP(value, table, column_index, FALSE)
=VLOOKUP(value, table, column_index, FALSE)
Make sure to set the value to FALSE
if you’re going to use the exact match mode. Chances are that you’ll need exact matching in most cases, so if you’re new to Excel don’t forget about this detail.
如果要使用完全匹配模式,请确保将值设置为FALSE
。 在大多数情况下,您可能需要完全匹配,因此,如果您不熟悉Excel,请不要忘记此详细信息。
Exact match is the right choice if you have a column with the item identifier. It may also be any unique value that can be used for an exact lookup. For example, it may be a unique title of a book or movie, as well as any other unique keyword. Keep in mind that VLOOKUP is not case-sensitive.
如果您有一列带有项目标识符的项目,则完全匹配是正确的选择。 它也可以是可用于精确查找的任何唯一值。 例如,它可以是一本书或电影的唯一标题,以及任何其他唯一关键字。 请记住,VLOOKUP不区分大小写。
However, sometimes you may need not the exact match but the best match possible one. In this case, you can use the approximate match mode.
但是,有时您可能不需要精确匹配,但可能需要最佳匹配。 在这种情况下,您可以使用近似匹配模式。
For instance, you may use this mode when dealing with data tables where the necessary information corresponds to certain numerical values, and you want to retrieve results for a value that isn’t included in the table.
例如,当处理必要信息对应于某些数值的数据表时,您可能会使用此模式,并且您想要检索表中未包含的值的结果。
You can use this approach when making calculations based on the existing data. If you enter a value and the function finds the exact match, it will retrieve information from the corresponding row. However, if there’s no exact match in the table, the function will match the previous row.
在基于现有数据进行计算时,可以使用此方法。 如果您输入一个值并且该函数找到了完全匹配,它将从相应的行中检索信息。 但是,如果表中不存在完全匹配项,则该函数将匹配上一行。
Why would it match the previous row, not another one? Well, it won’t if you don’t organize your table in the right way. To enable VLOOKUP to look for the best approximate value, you should make sure that all the values in this column are sorted in ascending order. In this case, the function will just step back and retrieve the nearest value.
为什么要匹配上一行而不匹配另一行? 好吧,如果您不以正确的方式组织表格,那将是不可能的。 为了使VLOOKUP能够寻找最佳的近似值,您应该确保此列中的所有值都按升序排序。 在这种情况下,该函数将退后一步并获取最接近的值。
N / A错误 (N/A Errors)
When using the VLOOKUP function, as well as many other functions in Excel, you may often get #N/A errors. This error means that the value was not found.
当使用VLOOKUP函数以及Excel中的许多其他函数时,您可能经常会遇到#N / A错误。 此错误意味着找不到该值。
You can get this error for several reasons. Here are some of the most common cases:
出现此错误的原因有很多。 以下是一些最常见的情况:
- you’ve misspelled the value or added an extra space您拼写了错误的值或添加了额外的空格
- the necessary value doesn’t exist in the table表格中没有必要的值
- you’re using the exact match mode when searching for an approximate value搜索近似值时使用的是完全匹配模式
- you haven’t entered the correct table range您没有输入正确的表格范围
- you’ve copied VLOOKUP while the table reference isn’t locked.您已在未锁定表引用的情况下复制了VLOOKUP。
If your table has an absolute reference, it means that the rows and columns won’t change if copied. However, this isn’t the case with a relative reference. In this case, you will need to switch to the absolute reference.
如果表具有绝对引用,则意味着复制后行和列不会更改。 但是,相对引用不是这种情况。 在这种情况下,您将需要切换到绝对参考 。
You can customize the text of the #N/A error by using the IFNA function. In this case, you have to write a longer formula with IFNA that includes VLOOKUP.
您可以使用IFNA函数自定义#N / A错误的文本。 在这种情况下,您必须使用包含VLOOKUP的IFNA编写更长的公式。
Here’s an example of a formula that will return “not found” instead of #N/A:
这是一个公式示例,它将返回“未找到”而不是#N / A:
=IFNA(VLOOKUP(value, table, column_index, FALSE), "not found")
=IFNA(VLOOKUP(value, table, column_index, FALSE), "not found")
And here is a formula that will return a blank result:
这是一个将返回空白结果的公式:
=IFNA(VLOOKUP(value, table, column_index, FALSE), "")
=IFNA(VLOOKUP(value, table, column_index, FALSE), "")
Although you can customize the message, you may consider using the #N/A error because it will immediately attract your attention and let you know if something goes wrong.
尽管您可以自定义消息,但是您可以考虑使用#N / A错误,因为它会立即引起您的注意,并在出现问题时通知您。
如何使用VLOOKUP (How to Use VLOOKUP)
You may write formulas from scratch, or you may also use the Excel menu. Select the cell where you want to display the result, and then select the “Formulas” tab.
您可以从头开始编写公式,也可以使用Excel菜单。 选择要在其中显示结果的单元格,然后选择“公式”选项卡。
After this, click “Insert Function.” You will see a box where you can select categories of functions and choose the VLOOKUP function. You can also use the “Search for a function” box, and enter “vlookup.”
之后,单击“插入功能”。 您将看到一个框,您可以在其中选择功能类别并选择VLOOKUP功能。 您还可以使用“搜索功能”框,然后输入“ vlookup”。
Select the function, and the “Function Argument” box will appear. Here you can enter the necessary parameters of the function. In this window, you should specify the unique identifier you’re looking for, database location, and the information that corresponds to the identifier that you want to retrieve.
选择功能,将出现“功能参数”框。 您可以在此处输入功能的必要参数。 在此窗口中,您应该指定要查找的唯一标识符,数据库位置以及与要检索的标识符相对应的信息。
These arguments are “Lookup_value,” “Table_array,” and “Col_index_num.” These fields are written in bold because these arguments are mandatory.
这些参数是“ Lookup_value”,“ Table_array”和“ Col_index_num”。 这些字段以粗体显示,因为这些参数是强制性的。
The fourth argument if for the lookup mode, and you may or may not specify it. The approximate mode is set by default.
第四个参数,如果为查找模式,则可以指定也可以不指定。 默认情况下设置为近似模式。
To enter the first argument, which is the unique identifier, you can select the necessary cell and press Enter. In this case, the value of this cell will be automatically entered as the first argument of the VLOOKUP function.
要输入第一个参数,即唯一标识符,可以选择必要的单元格,然后按Enter键。 在这种情况下,该单元格的值将自动作为VLOOKUP函数的第一个参数输入。
Now you have to enter the second argument. The database shouldn’t necessarily start at the top left corner. For instance, you may also have a row that describes columns, which serves as a header.
现在,您必须输入第二个参数。 数据库不必一定从左上角开始。 例如,您可能还具有描述列的行,该行用作标题。
“One of the best things about the VLOOKUP function is that the location of the database can also be customized,” notes Bridget Allen, an accountant at a Best Writers Online.
“关于VLOOKUP功能的最好的事情之一就是还可以自定义数据库的位置,” 在线最佳作家在线会计师布里奇特·艾伦(Bridget Allen) 说道 。
Given that VLOOKUP only works with numbers of columns, you should specify what area of your table you want to use for lookup. This is what the “Table_array” box is for.
鉴于VLOOKUP仅适用于列数,因此应指定要用于查询的表区域。 这就是“ Table_array”框的作用。
For example, if your table starts at the top left corner, and its first row is a header, you can select the whole database without the first line. If your database has four columns (A-D) and five items in it, the table array will be A2:D6, because cells A1-D1 will contain the header.
例如,如果您的表从左上角开始,并且其第一行是标题,则可以选择整个数据库而无需第一行。 如果您的数据库有四个列(AD)和五个项目,则表数组将为A2:D6,因为单元格A1-D1将包含标头。
You can click on the necessary worksheet tab, and select the area with the database. Press Enter and the selected range of cells will be automatically added to the second argument of the VLOOKUP function. Here is an example of a function argument:
您可以单击必要的工作表选项卡,然后选择数据库区域。 按Enter键,所选单元格范围将自动添加到VLOOKUP函数的第二个参数中。 这是一个函数参数的示例:
‘database_name’!A2:D6
'database_name'!A2:D6
In this case, “database_name” is the name of the worksheet tab.
在这种情况下,“ database_name”是工作表选项卡的名称。
Now you only need to specify what information you want to retrieve and provide the number of the necessary column.
现在,您只需要指定要检索的信息并提供必要列的编号即可。
For example, if you want to retrieve the price of an item from the table at the beginning of this article, you should use the third row, and the “Col_index_num” value will be 3.
例如,如果您想从本文开头的表格中检索某商品的价格,则应使用第三行,“ Col_index_num”值将为3。
结语 (Wrapping Up)
Microsoft Excel has a vast variety of functions that can help users deal with different calculations and other tasks. VLOOKUP is a very useful function that can retrieve information that corresponds to a certain value from a database table.
Microsoft Excel具有多种功能,可以帮助用户处理不同的计算和其他任务。 VLOOKUP是一个非常有用的功能,可以从数据库表中检索与某个值相对应的信息。
If you’re new to Excel, you may experience difficulties with this function because it has four arguments.
如果您不熟悉Excel,则此函数可能会遇到困难,因为它具有四个参数。
However, if you follow our guide, you’ll be able to select the right arguments and to use the right formulas. If you use this function a few times in practice, you will quickly understand how it works so you’ll be able to use VLOOKUP whenever you need it.
但是,如果您遵循我们的指南,则可以选择正确的参数并使用正确的公式。 如果您在实践中几次使用此功能,您将快速了解它的工作原理,因此可以在需要时使用VLOOKUP。
翻译自: https://www.freecodecamp.org/news/vlookup-in-excel/
vlookup示例
相关文章:

MySQL--从库启动复制报错1236
链接:http://blog.csdn.net/yumushui/article/details/42742461 今天在搭建一个MySQL master-slave集群时,执行了change master命令,然后又 start slave 启动slave服务,结果查看salve状态就出现错误了: mysql> show slave stat…

使用Script元素发送JSONP请求
// 根据指定URL发送一个JSONP请求 //然后把解析得到的相应数据传递给回调函数 //在URL中添加一个名为jsonp的查询参数,用于指定该请求的回调函数的名称 function getJSONP(url, callback){//为本次请求创建一个唯一的回调函数名称var cbnum "cb"getJSONP.counter;va…

iOS 崩溃记录
dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications Referenced from: /var/containers/Bundle/Application/AEECAAFB-F14A-43AA-9FB8-8388CAC40122/DouLiao.app/DouLiao Reason: image not found 原因应该是iOS系统版本太…

以太坊Geth几种同步模式
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 以太坊Geth几种同步模式 同步模式分类 –fast Enable fast syncing through state downloads –light Enable light client mode –s…

[转]Membership 到 .NET4.5 之 ASP.NET Identity
本文转自:http://www.cnblogs.com/jesse2013/p/membership-part3.html 我们前面已经讨论过了如何在一个网站中集成最基本的Membership功能,然后深入学习了Membership的架构设计。正所谓从实践从来,到实践从去,在我们把Membership的…

js填充select下拉框并选择默认值
/* 使用json数组填充下拉框并复选 *//* 初始化下拉框数据 */ var jsonStr { "data": [] }; for (var str in JsonStr.data) {jsonStr.data.push({ "value": JsonStr.data[str].value, "text": JsonStr.data[str].text }); }/* 调用BandSelectOb…

关于curl使用记录
因经常需要排除线上用户问题,查看用户数据请求结果,使用到curl命令,但是总是忘记,在此做下记录。 curl post请求命令行如下: curl -d "param0value0¶m1value1" "url"

智能合约部署及调用
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 智能合约部署及调用 以太坊区块链技术2.0版本对于行业应用的开发最主要特性就是实现了智能合约,本质上讲智能合约是由事件驱…

POP到指定的界面
int index (int)[[self.navigationController viewControllers]indexOfObject:self]; [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index -2)] animated:YES];

js markdown chart flow
http://knsv.github.io/mermaid/#example-of-a-marked-renderer转载于:https://www.cnblogs.com/studyNT/p/5584399.html

使用Remix编译和部署以太坊智能合约
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 使用Remix编译和部署以太坊智能合约 Remix 是一个开源的 Solidity 智能合约开发环境,提供基本的编译、部署至本地或测试网络…

Java之Array(数组)说明
代码说明: 1 package array;2 3 import java.util.ArrayList;4 import java.util.Arrays;5 import java.util.List;6 7 /**8 * Array使用说明:9 * 内容: 10 * 1、Array实例化; 11 * 2、Array与ArrayList转换; 12 …

创建操作/删除多行数据的UITableView的细节
首先注意需要重写-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath 这里需要注意的是返回的结果应该是 return UITableViewCel…

每天进步一点点——Linux
http://blog.csdn.net/cywosp/article/category/443566/1转载于:https://www.cnblogs.com/zengkefu/p/5586780.html

用Go 构建一个区块链 -- Part 5: 地址
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 比特币地址 这就是一个真实的比特币地址:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa。这是史上第一个比特币地址,据说属于…

iOS 9 适配系列教程
转自:http://www.cocoachina.com/ios/20150703/12392.html 本文是投稿文章,作者:ChenYilong(https://github.com/ChenYilong/iOS9AdaptationTips) Demo1_iOS9网络适配_改用更安全的HTTPS iOS9把所有的http请求都改为ht…

AutoMocker单元测试
/// <summary>/// 测试获取所有物流/// </summary>[TestMethod]public void TestExpressController(){var Expresss new List<Express> { new Express{Code"01",Name"测试物流"}}.AsQueryable();var mocker new AutoMocker();mocker.U…

CSS.text不被选中
1、 text{-moz-user-select: none; /*火狐*/-webkit-user-select: none; /*webkit浏览器*/-ms-user-select: none; /*IE10*/-khtml-user-select: none; /*早期浏览器*/-o-user-select: none; /* Opera*/user-select: none;} 2、user-select - CSS3参考手册.html(htt…

一个Solidity源文件的布局
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 源文件可以包含任意数量的合约定义,include指令和pragma伪指令。 Pragma 版本 源文件可以(并且应该)使…

iOS 数字滚动 类似于老 - 虎- 机的效果
效果图 具体实现代码如下 ZCWScrollNumView.h文件 #import <UIKit/UIKit.h>typedef enum {ZCWScrollNumAnimationTypeNone,ZCWScrollNumAnimationTypeNormal,ZCWScrollNumAnimationTypeFromLast,ZCWScrollNumAnimationTypeRand,ZCWScrollNumAnimationTypeFast } ZCWScro…

序列化模块--json模块--pickle模块-shelve模块
什么叫序列化? 序列化是指把内存里的数据类型转变成字符串,以使其能存储到硬盘或通过网络传播到远程,因为硬盘或网络传输时只能接受bytes 例: 把内存数据 转成字符 # data {# roles:[# {role:monster,type:pip,life:5…

UITextView添加占位字符
#import "YGTextView.h"#define kPlaceholderDefaultTopMargin 4 // Placeholder上下间距#define kPlaceholderDefaultLeftMargin 5 // Placeholder左右间距implementation YGTextView#pragma mark - 初始化PlaceholderTextView- (instancetype)initWithFrame…

手把手教你搭建智能合约测试环境、开发、编译、部署以及如何通过JS调用合约方法
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 学习目标 了解智能合约 简单环境搭建 能够利用solidity编写Hello World合约 合约部署 和合约互动 使用solidity语言撰写智能合约 …

洛谷P3159 [CQOI2012]交换棋子
巧妙的拆点方式,首先把1看成黑点,0看成空的,几次交换就可以看成一条路径 1)从容量上看,这条路径为1-2-2-2-2-2-……-2-1 2)从费用上看,这条路径每条边费用都是1 于是用一种巧妙的拆点方式&#…

趣谈iOS运行时的方法调用原理
一个成熟的计算机语言必然有丰富的体系,复杂的容错机制,处理逻辑以及判断逻辑。但这些复杂的逻辑都是围绕一个主线丰富和展开的,所以在学习计算机语言的时候,先掌握核心,然后了解其原理,明白程序语言设计的…

GCD实现倒计时
__block int timeout59; //倒计时时间dispatch_queue_t queue dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);dispatch_source_t _timer dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0,queue);dispatch_source_set_timer(_timer,dispatch_wall…

Solidity基础入门知识(十)函数的访问权限和可见性
链客,专为开发者而生,有问必答! 此文章来自链客区块链技术问答社区,未经允许拒绝转载。 下面来继续介绍作为一个分布式网络语言所特有的internal和external这两种不同的函数调用方式,以及Solidity提供的对函数调用时的…

Sass (Syntactically Awesome StyleSheets)
Sass (Syntactically Awesome StyleSheets) Sass 是对 CSS 的扩展,让 CSS 语言更强大、优雅。 它允许你使用变量、嵌套规则、 mixins、导入等众多功能, 并且完全兼容 CSS 语法。 Sass 有助于保持大型样式表结构良好, 同时也让你能够快速开始小…

键盘的相关设置
一、键盘风格 UIKit框架支持8种风格键盘。 typedef enum { UIKeyboardTypeDefault, // 默认键盘:支持所有字符 UIKeyboardTypeASCIICapable, // 支持ASCII的默认键盘 UIKeyboardTypeNumbersAndPunctuation, // 标准电…

python全栈开发基础【第十七篇】面向对象反射和内置方法
一、静态方法(staticmethod)和类方法(classmethod) 类方法:有个默认参数cls,并且可以直接用类名去调用,可以与类属性交互(也就是可以使用类属性) 静态方法:让类里的方法直…