小编Cha*_*han的帖子

未捕获的类型错误:b.get 不是函数

在使用谷歌地图 API 实现自动完成地点时,当我尝试输入任何地点时,Chrome 控制台窗口会生成一堆错误。其中之一是 Uncaught TypeError: b.get is not a function at Ew._.k.get (js?key=[KEY]&libraries=places&callback=initMap:106)

代码:

<!-- Google Maps API integration-->
<div class="gmaps">
    <div id="map"></div>
    <script>
      function initMap() {
      <!-- getting the user location -->
      if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(success);
      } else {
          alert('geolocation not supported');
      }
      <!-- if successfully found the location -->
      function success(position) {

          var uluru = {lat:position.coords.latitude, lng: position.coords.longitude};
          var map = new google.maps.Map(document.getElementById('map'), {
              zoom: 15,
              center: uluru
            });

          var marker = new google.maps.Marker({
              position: uluru, …
Run Code Online (Sandbox Code Playgroud)

html javascript google-maps-api-3

5
推荐指数
1
解决办法
8048
查看次数

导入 openpyxl 时语法无效

Python 2.7.5 (default, Sep 26 2019, 13:23:47)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import openpyxl

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<user>/.local/lib/python2.7/site-packages/openpyxl/__init__.py", line 6, in <module>
    from openpyxl.workbook import Workbook
  File "<user>/.local/lib/python2.7/site-packages/openpyxl/workbook/__init__.py", line 4, in <module>
    from .workbook import Workbook
  File "<user>/.local/lib/python2.7/site-packages/openpyxl/workbook/workbook.py", line 7, in <module>
    from openpyxl.worksheet.worksheet import Worksheet
  File "<user>/.local/lib/python2.7/site-packages/openpyxl/worksheet/worksheet.py", line 396
    return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
Run Code Online (Sandbox Code Playgroud)

是否需要安装任何其他软件包?

任何人都可以让我知道这种行为背后的原因,因为它在 windows 和 macos 上运行良好。

python unix excel redhat openpyxl

1
推荐指数
1
解决办法
1822
查看次数

标签 统计

excel ×1

google-maps-api-3 ×1

html ×1

javascript ×1

openpyxl ×1

python ×1

redhat ×1

unix ×1