mailto:是有效的URL还是有效的URI?

时间:2017-09-08 00:59:25

标签: url uri mailto

print("Please think of a number between 0 and 100!") low = 0 high = 100 guess = int(0.5*(low + high)) print("Is your secret number", guess,"?") ans = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.") while ans != 'h' or ans != 'l' or ans != 'c': print("Sorry, I did not understand your input.") print("Is your secret number", guess,"?") print(ans) ans = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.") 是有效的网址还是有效的URI?或两者兼而有之?

我需要选择一个解析库,我需要先知道它才能正确选择。

1 个答案:

答案 0 :(得分:1)

如果您遵循当代视图, URI URL 之间的区别是没有用的。建议对所有内容使用 URI URL 。在实践中,这些术语通常用于同义词。

下面提到的两个组织遵循建议只使用一个术语,但他们没有使用相同的术语。

Quotes and links in this answer.

IETF

这是 URI

(根据RFC 6068,目前是IETF的mailto URI方案规范,通过Uniform Resource Identifier (URI) Schemes。)

以前的RFC称之为 网址 RFC 2368)。

WHATWG

这是 网址

(根据URL Living Standard。)