有效搜索短名称 [英] Effective Googling for short names

查看:83
本文介绍了有效搜索短名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我时不时地需要用很小的语言和/或具有特殊字符的语言查找一些关键字或函数.
例子包括
python中的'as'关键字('python as','python as keyword'..等不起作用)
红宝石中的"$:"之类的东西(想知道它代表什么)
irb
中的'p'命令 等等

Every now and then, I need to lookup some keyword or function in a language that is very small, and/or has special characters..
Examples include
the 'as' keyword in python ('python as', 'python as keyword'.. etc don't work)
things like '$:' in ruby (wanted to know what it represents)
the 'p' command in irb
etc

Google在此类搜索上完全使我失败..不值得在SO上放置如此愚蠢的问题..语言文档通常无法正确解释这些问题(或者,如果没有,我会在没有Google帮助的情况下不知所措)

Google totally fails me on such searches.. it's not worth putting such stupid questions on SO.. language documentation often doesn't explain these properly (or if it does, i don't know where to look without google's help)

在这种情况下您可以做什么?

What can you do in such situations? How do coax google into finding answers to such problems?

推荐答案

使用引号有很大帮助.例如,如果您搜索:

Using quotes helps a lot. For instance, if you search for:

python "as keyword"

然后第一个匹配项是"the关键字((非官方)Python参考Wiki)" .其他匹配也与"as"关键字有关.

then the first hit is "The as keyword ((An Unofficial) Python Reference Wiki)". Other hits are also about the "as" keyword.

除此之外,我还要查找处理 all 个Python关键字的页面,并找到相关条目.

Other than that, I'd look for pages which deal with all Python keywords, and find the relevant entry.

但是,对于符号来说要困难得多.拥有正确的术语会大有帮助-如果您知道?:"是C#中的条件运算符,则查找起来会更容易.那是一本好书(或者再说一遍运算符/关键字),可以帮助您在语言中添加符号.

However, for symbols it's a lot harder. Having the right terminology helps a lot - if you know that "?:" is the conditional operator in C#, it's easier to look for. That's where a good book (or again, a list of operators/keywords) helps to put symbols into language.

这篇关于有效搜索短名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆