V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  JasonLaw  ›  全部回复第 3 页 / 共 36 页
回复总数  713
1  2  3  4  5  6  7  8  9  10 ... 36  
286 天前
回复了 JasonLaw 创建的主题 程序员 Java - 如果根据参数类型调用不同的方法?
@Alphones #2 THX ,不过我在一楼已经说了这种方法了。不管怎样,还是谢啦。
287 天前
回复了 JasonLaw 创建的主题 程序员 Java - 如果根据参数类型调用不同的方法?
Sorry ,putStr(String k, String v)应该为 put(String k, String v),putInt(String k, Integer v)应该为 put(String k, Integer v),我知道通过反射能够解决这个问题。除了反射之外呢?有没有其它优雅一点的方法?
294 天前
回复了 0BlackCat0 创建的主题 问与答 不懂就问 大家说的 OP 是什么意思?
这种问题问 chat bot 最合适了。

"OP" 可以有不同的含义,具体取决于上下文。在一些情况下,"OP" 可以指 "Original Poster",即原始发帖人。在论坛、社交媒体等网站上,人们常常使用这个术语来指代发表某个帖子或主题的人。在其他情况下,"OP" 也可能代表 "Operator",即操作员。在计算机和技术领域,这个术语通常用来指代系统管理员或其他负责维护和管理计算机系统的人。
@mkroen #3 我知道这样子可以,但是这样子我的代码就会变得复杂。我需要判断 stop 是否为-1 ,如果是-1 的话,就需要使用 s[3::-1]替代 s[3:-1:-1]。
@luozic #2 按照正常理解的话,我会觉得 s[3:-1:-1]的结果是'e'+'c'+'c'+'e',不包含'r',因为它是 stop index 所在的 char 。
306 天前
回复了 ladypxy 创建的主题 Python 如何用 map 和 re 来优化下面的 if..else..
@LoNeFong #7 这代码没有一点可读性🤕
308 天前
回复了 JasonLaw 创建的主题 OpenAI Poe 如何删除机器人?
@mexingchi #3 今天刚好看到一个主题,里面讨论了怎么删除,我还没试过,你可以去试一下。

https://v2ex.com/t/950360#reply6
311 天前
回复了 x77 创建的主题 程序员 前辈写的代码,要不你来解释一下?
@way2explore2 #3 这段代码更大的问题是命名,对我来说,我根本不知道 a 是什么。

BTW ,这个函数的名称是什么?
311 天前
回复了 x77 创建的主题 程序员 前辈写的代码,要不你来解释一下?
@hhjsw desc 跟 gender 是非常紧密的东西,弄得这么远真的好吗?
311 天前
回复了 x77 创建的主题 程序员 前辈写的代码,要不你来解释一下?
@xuanbg 更加好的设计不应该是 Gender 的一个属性吗?比如叫 desc ,male 的 desc 是 Male ,而 female 的是 Female 。

代码没问题,但是很难维护。
为什么有一些招聘都不写工资的?🤔️
不知道是我的水平不够还是怎样,我都看不太懂这种类型的文章,就像古代人在跟我讲话一样。就不能好好说白话文吗?🤕
314 天前
回复了 wangpugod2003 创建的主题 程序员 chatGPT 刷新题完全不行啊
Subscribe to unlock.

Thanks for using LeetCode! To view this question you must subscribe to premium.

😭
316 天前
回复了 tbg 创建的主题 分享发现 深圳地铁还能投 ChatGPT 的广告?
一句题外话,我很反感地铁到处都是广告。🤐BTW ,国外的地铁也是这样吗?
321 天前
回复了 lmybill 创建的主题 Java Java 里的 equals 方法
@JasonLaw 它后面也说了

The equals method for class Object implements **the most discriminating possible** equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object (x == y has the value true). In other words, under the reference equality equivalence relation, each equivalence class only has a single element.
321 天前
回复了 lmybill 创建的主题 Java Java 里的 equals 方法
我不明白你是怎么得出“equals 本来比较的是两个对象是否是同一个对象”这个结论的,可以给一下你的论证吗?

https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)

文档上是这么说的。

The equals method implements an equivalence relation on non-null object references:

* It is reflexive: for any non-null reference value x, x.equals(x) should return true.
* It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
* It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
* It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
* For any non-null reference value x, x.equals(null) should return false.
321 天前
回复了 JasonLaw 创建的主题 OpenAI 忍不住吐槽, Google 的 Bard 真的很弱智
@catfly #1

I am an LLM trained to respond in a subset of languages at this time, so I can't assist you with that. Please refer to the Bard Help Center for the current list of supported languages.

Where you can use Bard
Bard is currently available in 3 languages and over 180 countries and territories. We’ll gradually expand to more countries and territories in a way that is consistent with local regulations and our AI principles.

You can use Bard in the following languages:
US English
Japanese
Korean
1  2  3  4  5  6  7  8  9  10 ... 36  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1340 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 17:48 · PVG 01:48 · LAX 10:48 · JFK 13:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.