小编pik*_*kuu的帖子

NoneType对象不可调用_美丽的汤

到目前为止这是我的代码

# -*- encoding: utf-8 -*-

import urllib2
from BeautifulSoup import BeautifulSoup as bs
import json


data = urllib2.urlopen('http://www.jma.go.jp/en/yoho/320.html')

html_doc = data.read()

soup = bs(html_doc)

weather = soup.find('table',attrs={'class':'forecast'})
weather_res = weather.find_all('th')
Run Code Online (Sandbox Code Playgroud)

为什么我得到NoneType错误...

python beautifulsoup

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

在Unity中使用未分配的局部变量

这是我的脚本来控制我的镜头的运动..但我得到错误:

错误CS0165:使用未分配的局部变量`floorHit'

我该如何解决?

void Start(){
    floor = LayerMask.GetMask ("Floor");
    Ray RAY = Camera.main.ScreenPointToRay (Input.mousePosition);
    RaycastHit floorHit;
    Vector3 playerMouse = floorHit.point - transform.position;
    playerMouse.y = 0f;
    MoveTo (playerMouse.x, playerMouse.z);
}
Run Code Online (Sandbox Code Playgroud)

c# unity-game-engine

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

标签 统计

beautifulsoup ×1

c# ×1

python ×1

unity-game-engine ×1