我想GetDeepSearchResults
从Zillow API 访问信息。
我的代码:
library(ZillowR)
zapi_key = getOption('Myapikey')
GetDeepSearchResults(
address = '600 S. Quail Ct.',
zipcode = '67114',
rentzestimate = FALSE,
api_key = zapi_key
)
Run Code Online (Sandbox Code Playgroud)
错误:
Error in GetDeepSearchResults(address = "600 S. Quail Ct.", zipcode = "67114", :
unused arguments (zipcode = "67114", api_key = zapi_key)
Run Code Online (Sandbox Code Playgroud)
为什么会发生此错误?我该怎么做才能解决此问题?
编辑:我根据注释更改了代码,并得到了:
我的代码:
library(ZillowR)
zapi_key = getOption('myapikey')
GetDeepSearchResults(
address = '600 S. Quail Ct.',
citystatezip = '67114',
rentzestimate = FALSE,
zws_id = 'myapikey',
url = "http://www.zillow.com/webservice/GetDeepSearchResults.htm"
)
Run Code Online (Sandbox Code Playgroud)
输出:
$request
$request$address
NULL …
Run Code Online (Sandbox Code Playgroud) 我正在将 djoser 与 django Rest 框架一起使用,并且我想从创建用户表单中删除用户名字段:
settings.py
:
'SERIALIZERS': {
'user_create': 'user.serializers.UserRegistrationSerializer',
},
Run Code Online (Sandbox Code Playgroud)
serializers.py
:
class UserRegistrationSerializer(BaseUserRegistrationSerializer):
class Meta(BaseUserRegistrationSerializer.Meta):
fields = ('email', 'password')
Run Code Online (Sandbox Code Playgroud)
我收到以下错误。你如何解决这个问题?
Run Code Online (Sandbox Code Playgroud)TypeError at /auth/users/create create_user() missing 1 required positional argument: 'username'
假设我的PHP服务器根目录中有两个文件夹:x
和y
.x
文件夹中还有两个目录:a
和b
.在/x/a
目录中我有index.php
文件,在/y
文件夹中有stuff.php
文件.
从我的/x/a/index.php
文件中,我想要包含该/y/stuff.php
文件.我怎么做?
我的服务器不允许包含来自其他域的文件,因此添加完整的URL不起作用!另外,我想知道如何从PHP中的根开始路径.我使用./blabla
我的根索引和根../blabla
目录中的目录,但不幸的是,.../blabla
它不适用于二年级目录.
我知道这可能是愚蠢的...但我真的不明白
假设我们有32位地址,所以每个位可以是1或0.
所以总组合等于2 ^ 32
所以我们可以代表2 ^ 32个地址.(没有单位)
但为什么人们总是说32位地址可以代表2 ^ 32字节地址(为什么弹出"字节")?
它不是2 ^ 32*8bits地址吗?为什么人们可以在最后添加"字节"?
我很困惑....谢谢
我想显示从我的后端(CodeIgniter)到我的前端(Angular 4)的数据,但是这个错误出现了:
错误错误:找不到类型>'对象'的不同支持对象'[object Object]'.NgFor仅支持绑定到诸如Arrays之类的Iterables.
这是我的组成部分:
import { BookService } from './../book.service';
import { Component, OnInit } from '@angular/core';
import { Book } from "../book";
@Component({
selector: 'app-book',
templateUrl: './book.component.html',
styleUrls: ['./book.component.css']
})
export class BookComponent implements OnInit {
constructor(public bookService: BookService ) { }
ngOnInit() {
this.getBooks();
}
books:Book;
getBooks(){
this.bookService.getBooks()
.subscribe(books=>{
this.books = books;
})
}
}
Run Code Online (Sandbox Code Playgroud)
这是我的服务:
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map' ;
@Injectable()
export class BookService {
constructor(private …
Run Code Online (Sandbox Code Playgroud)