有效的谷歌搜索短名称

发布于 2024-07-22 19:39:26 字数 313 浏览 6 评论 0原文

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

谷歌在这样的搜索上完全让我失败了..不值得在SO上提出如此愚蠢的问题..语言文档通常不能正确解释这些(或者如果确实如此,我不知道在没有谷歌帮助的情况下该去哪里寻找)

什么可以你在这种情况下会做什么? 如何引导谷歌寻找此类问题的答案?

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 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

北城半夏 2024-07-29 19:39:26

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

python "as keyword"

那么第一个命中是 "as 关键字((非官方)Python 参考维基) ”。 其他点击也与“as”关键字有关。

除此之外,我会查找处理所有 Python 关键字的页面,并找到相关条目。

然而,对于符号来说,这要困难得多。 拥有正确的术语会有很大帮助 - 如果您知道“?:”是 C# 中的条件运算符,那么查找就更容易了。 这就是一本好书(或者再次,操作符/关键字列表)有助于将符号放入语言的地方。

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

python "as keyword"

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

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

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.

年华零落成诗 2024-07-29 19:39:26

那么对于 ruby​​ 为什么你不搜索 ruby​​ 内置全局变量呢? 我假设您对您要寻找的东西有足够的了解,您可以描述它吗?

Well for ruby why wouldn't you search on ruby builtin globals? I'm assuming you have enough knowledge of what you looking for that you can describe it?

自控 2024-07-29 19:39:26

对于符号,我经常需要输入符号(尽管谷歌在符号方面做得越来越好。)

例如:
http://www.google.com/search?q=unix+% 22点+点%22
或者
http://www.google.com/search?q=ruby+% 22美元+符号%22

for symbols I often have to type out the symbol (although google is getting better with symbols.)

e.g.:
http://www.google.com/search?q=unix+%22dot+dot%22
or
http://www.google.com/search?q=ruby+%22dollar+sign%22

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文