-1
私はちょうどPythonを初めて使いました。簡単な質問をしたいと思います。webbrowserモジュールを使用してGoogleマップを使用する
import webbrowser, pyperclip, sys
chrome = "C:/Program Files/Google/Chrome/Application/chrome.exe %s"
def location_finder():
output = input('Type the place you want to find!\n')
webbrowser.get(chrome).open('https://www.google.com/maps/place/' + output)
location_finder()
このコード:このコードを使用しての間の違いを何
import webbrowser, pyperclip, sys
if len(sys.argv) > 1:
address = ' '.join(sys.argv[1:])
else:
address = pyperclip.paste()
webbrowser.open('https://www.google.com/maps/place/' + address)
すべてです。あるいは、ドキュメントが壊れていますか? –