腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
为什么
“
int
”
的
类型
是
type
?
python
、
types
我正在打印
类型
(
Int
)。请给我解释一下这种行为。提前谢谢。 print(
type
(
int
))
浏览 57
提问于2019-09-26
得票数 1
回答已采纳
1
回答
为什么
“testScores[”dave“]
的
类型
是
"Optional<Array<
Int
>>.
Type
”而不是"<Array<
Int
>>.
Type
“
swift
、
subscript
、
dynamictype
我
是
Swift
的
新手,我正在努力学习下标的概念。当我试图找出testScores"dave“
的
返回值时,我期待
的
是
Array<
Int
>.
Type
,但是,IDE却输出了Optional<Array<
Int
>>.
Type
。
为什么
是
这种情况?
浏览 4
提问于2016-02-12
得票数 4
回答已采纳
1
回答
从(
type
*
int
)到
int
类型
的
类型
转换
pointers
、
int
、
type-conversion
、
go
我想在GO语言中将指针*
int
转换为它
的
实际值
int
。 你
是
怎么做到
的
?
浏览 1
提问于2012-06-18
得票数 1
回答已采纳
3
回答
int
a=3;
int
*p=&a;解密
类型
(a) k1;解密
类型
(*p) k2;k1
是
int
类型
,k2
是
int
&
type
为什么
?
c++
、
reference
、
decltype
、
rvalue
、
lvalue
码
int
main()
int
a=3; decltype (*p) k2; return 0;输出对这种现象
的
解释
是
:“decltype返回一种表达式
的
引用<em
浏览 5
提问于2021-11-08
得票数 3
回答已采纳
1
回答
为什么
类
的
类型
是
<class '
type
'>
python
、
class
、
types
我检查了python中所有东西
的
类型
。但是我不能理解
为什么
类
的
类型
是
<class '
type
'> class Hello: print('
type
check one: ',
type
(c)) print('
type
check two: ',
type
(Hello)) 输出:- <em
浏览 48
提问于2021-07-15
得票数 0
2
回答
不可排序
的
类型
:
type
()>
int
python
、
types
、
int
我
的
代码有问题。我一直收到关于这个
的
错误。现在我得到了不可排序
的
类型
错误。基本上,我需要我
的
程序接受一个座位限制,然后确保售出
的
门票数量在这个限制之内。然后我只需要计算门票销售产生
的
收入。我
是
python
的
新手,所以如果有任何帮助,我将非常感激。谢谢:) ticketSold=
int</em
浏览 4
提问于2014-03-12
得票数 0
1
回答
Haskell
类型
错误:
type
:a
Int
,不匹配:
Int
haskell
、
typeerror
我需要生成一个从1到5
的
随机数,这个数还不在传递
的
列表中。下面
是
我
的
代码:questionNumberGenerator ql = do let element = (elem qn ql)::Bool if(element==True)
浏览 0
提问于2012-02-05
得票数 0
回答已采纳
1
回答
type
:+=与
int
类型
不兼容
solidity
、
remix
depM = addressToMaker[msg.sender];}browser/PHBacon.sol:33:9: TypeError: Operator += not compatible with types
int
256 and uint256
浏览 0
提问于2019-01-30
得票数 1
回答已采纳
1
回答
为什么
python中
的
type
(
int
_
int
)将是
int
?
python
、
variables
我在Python中发现了一件奇怪
的
事情,如果我将一个变量赋值为
int
_
int
、float_
int
、
int
_float,
类型
为
int
、float、float,则下划线似乎
是
一个连接字符,例如:则x为
int
,值为100200。有人能解释
为什么
和如何合理使用吗?
浏览 0
提问于2018-05-24
得票数 0
回答已采纳
4
回答
为什么
‘of’
是
‘`
type
`’
的
实例,‘`
type
`’
是
‘of’
的
实例?
python
、
python-3.x
、
oop
、
object
、
metaprogramming
我对Python3中
的
object和
type
类有点困惑,也许有人可以澄清我
的
困惑,或者提供一些额外
的
信息。 是否有理由/设计决定
为什么
object
是
type
的
一个实例,
type
继承自object?对象
的
浏览 0
提问于2019-04-20
得票数 29
回答已采纳
1
回答
为什么
是
int
/
int
=
int
?
c++
、
c
为什么
当我除以两个整数时,结果
是
一个整数而不是一个浮点数,
为什么
选择这个设计决策?
浏览 1
提问于2015-01-24
得票数 5
回答已采纳
2
回答
为什么
typeid返回
int
和const
int
是
相同
的
类型
?
c++
、
typeid
if(typeid(
int
) == typeid(const
int
))程序输出: 我是不是遗漏了什么?这些不是相同
的
类型
lol。
浏览 2
提问于2012-01-17
得票数 17
回答已采纳
3
回答
为什么
Int
32
是
值
类型
?
.net
为什么
从System.Object (通过System.ValueType)派生
的
System.
Int
32
是
值
类型
,而System.Object
是
引用
类型
?
浏览 0
提问于2010-09-21
得票数 2
回答已采纳
1
回答
为什么
我函数
的
返回
类型
是
->
Int
?
haskell
我
的
家庭作业有问题,我必须写一个程序,它
的
行为类似于wc。我目前
的
做法如下:import qualified Data.ByteString.UTF8 as UTF8 numBytesUtf8 = BS.length .rest next = head r getLongestLineLength
浏览 0
提问于2019-06-13
得票数 0
回答已采纳
2
回答
mypy:
为什么
"
int
“
是
"float”
的
子
类型
?
python
、
mypy
为什么
"mypy“认为"
int
”
是
"float“
的
子
类型
?子
类型
应该支持它
的
父
类型
的
所有方法,但是"float“有方法,"
int
”不支持:def f(x : float) -> bool:print(f(123)) 静态
类型
检查器接受为&qu
浏览 0
提问于2020-01-07
得票数 11
1
回答
Python print(
int
)给我
的
是
<
type
'
int
'>而不是<内置函数'
int
'>!
python
这是否意味着当我调用
int
("123")时,它实际上
是
在创建
int
类
的
实例?
浏览 2
提问于2014-06-03
得票数 0
回答已采纳
2
回答
int
_
type
未命名
类型
挫折
c++
、
std
、
typedef
、
virtual-functions
、
streambuf
我在中有一个虚拟方法
类型
为,这是代码给出编译错误
的
唯一情况:
int
_
type
ThreadLogStream::overflow(
int
_
type
调试步骤到目前为止 如果我悬停在Qt中
的
任何其他
int
_
type
实例上,它将显示traits_
type
::
int
_
type
浏览 25
提问于2016-12-05
得票数 3
回答已采纳
1
回答
为什么
"
int
“
的
MRO中没有"
type
”?
python
、
python-3.x
、
metaprogramming
根据我
的
理解,
int
.mro()
的
第二个元素应该是<class '
type
'>,因为它是
int
.__class__
的
输出。但是相反,
int
.mro()给了[<class '
int
'>, <class 'object'>]。它是如何实施
的
?
浏览 2
提问于2020-08-25
得票数 3
回答已采纳
2
回答
Haskell getArgs
类型
是
`
type
‘而不是`[
type
’]
list
、
haskell
、
char
、
command-line-arguments
getArgshandle ← openFile args ReadMode 但是,当我编译时,我被告知args
的
类型
是
在Haskell,是否有其他方式来接受争论,或者我是否错误地接受了我
的
观点?
浏览 2
提问于2015-10-21
得票数 2
回答已采纳
2
回答
为什么
Windows中
的
BOOL
是
int
类型
的
?
c
、
windows
、
winapi
为什么
不将BOOL定义为enum,如是否有任何理由必须将BOOL指定为显式为
int
(或任何其他整数
类型
)?
浏览 7
提问于2017-07-01
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券