腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
在
python
中将
list
[
str
]转
换为
list
[
int
]
python
, init #GIVE A NUMBER# CONVERT INPUT(
STR
) TO
LIST
:#CONVERT
LIST
(
STR
) TO
LIST
(
浏览 135
提问于2021-01-25
得票数 0
回答已采纳
2
回答
在
scala
中将
List
[(
Int
,String)]转
换为
List
[
Int
]
scala
、
functional-programming
下面的函数应该完成剩下的工作(将索引列表映射到每个单词):l.groupBy(x => x._2) 它返回一个Map[String,
List
[(
Int
,String)]。现在,我只想将值更改为
List
[
Int
]类型。
浏览 1
提问于2018-06-02
得票数 0
1
回答
在
C#
中将
List
<IEnumerable<
int
>>转
换为
List
<
int
>
c#
、
.net-core
我需要将此IEnumerable转
换为
List
。这段代码解决了我的问题,但我正在寻找另一个比这更优雅的解决我的问题的方法。.Where(c => folderIds.Any(y => y == c.Id)).Select(x => x.Categories.Select(y => y.Id)).ToList(); foreach (var it
浏览 0
提问于2021-10-20
得票数 0
2
回答
如何在
python
中使数字可迭代?
python
、
list
、
integer
我们如何在
python
中迭代整数集合,或者如何在
python
中将
数字集合转
换为
列表? 当我试图迭代整数时,我得到了错误。TypeError:“
int
”对象不可迭代 输入n= 7849 9594 9699 n = input()print(i) 回溯(最近一次调用): 文件"E:/
Python
code&
浏览 167
提问于2021-01-31
得票数 0
回答已采纳
3
回答
在
颤振
中将
List
<
int
>转
换为
List
<String>?
flutter
、
list
、
dart
、
sharedpreferences
List
<
int
> selectedAmount = []; onPressed: () { MaterialPageRoutethis.index = index);}, Icons.add, color: Colors.blueGrey,))
List
<
int
> totalList = selectedAmou
浏览 11
提问于2022-09-08
得票数 0
8
回答
在
List
<string>
中将
List
<
int
>转
换为
C#
c#
我想将
List
<string>转
换为
List
<
int
>。这是我的代码:{ for (
int
i = 0; i < stringList.Count; i++)
浏览 5
提问于2013-11-02
得票数 24
回答已采纳
1
回答
如何正确地将
list
[
str
]转
换为
list
[
int
]?
python
、
flask
、
type-conversion
为了使它成为一个
list
[
str
],我使用了这个data2 = [data1],输出现在是"1,2,3,4,5“。最后,为了
在
list
[
int
]中转换它,我使用了这个finalData =
list
(map(
int
,data2[0].split(","))),这将导致这个1,2,3,4,5。问题:,但是每次我使用这个代码烧瓶时,总是提示这个错误: 文件"C:\Users\bagal\Desktop\hello_flask\dumm
浏览 5
提问于2022-02-28
得票数 0
回答已采纳
2
回答
循环Cython字符串中的数据
python
、
casting
、
boolean
、
cython
011010000110010101101100011011000110111100100000011101110110111101110010011011000110010000001010' 我正在做这件事 cdef
int
我想要像这样的东西 cdef
int
data print(data) 1 0 etc...接下来,我想在代码
中将
此0/1
转
换为
False&
浏览 32
提问于2020-11-11
得票数 0
回答已采纳
8
回答
在
.NET 2.0
中将
List
<
int
>转
换为
List
<string>
c#
、
generics
、
casting
您能以某种方式将
List
<
int
>转
换为
List
<string>吗?我使用的是C# 2.0 (所以没有)。
浏览 2
提问于2008-09-04
得票数 98
回答已采纳
1
回答
在
Java 8
中将
List
<
List
<Integer>>转
换为
int
[][]
java
、
java-8
、
java-stream
我希望
在
Java 8
中将
List
<
List
<Integer>>转
换为
int
[][]。有什么快速的指针吗? .flatMap(
List
::stream)
浏览 0
提问于2021-04-22
得票数 2
回答已采纳
1
回答
python
中的
List
、
str
和
int
帮助
python
、
elementtree
") print "%s, %s" % (start, end,) start =
int
(start+1) if start <= end: 我收到错误消息,说我不能连接'
str</em
浏览 2
提问于2012-07-07
得票数 0
回答已采纳
2
回答
Python
3将IPV4Address转
换为
字符串
python-3.x
、
types
、
ip-address
、
socks
我正试图按照下面的错误消息将
python
3中的
python
3
转
换为
string或
int
。我不太确定我是不是做错了。我也试过
int
(x)和bytes(x)都不起作用 File "/Users/krisarmstrong/PycharmProjectspyportscanner/pyportscanner", line 70, in get_ip_addres
浏览 3
提问于2017-05-23
得票数 0
回答已采纳
2
回答
在
python
中将
data-frame转
换为
list
of
list
python
、
list
、
dataframe
我有一个像这样的数据框0 2011-01-10 19:28:31 1 56 NaN2 2013-03-10 12:28:31 3 3 3.04 2015-04-10 14:28:31 7 72 NaN 5 2014-06-10 14:28:31 6
浏览 0
提问于2019-02-06
得票数 1
1
回答
在
Scala
中将
列表[
List
[
Int
]]转
换为
Set[
Int
]
scala
在
Scala中是否可以将包含
Int
类型的内部列表的列表转
换为
Set[
Int
]?例如,以下转换是可能的:如果是,可以解释一下吗?
浏览 2
提问于2013-11-24
得票数 0
回答已采纳
1
回答
在
Python
中将
str
转
换为
int
python
、
type-conversion
目前,我正试图从一本书中学习
Python
,但我遇到了一个问题。基本上,我应该写一个程序来做一些叫做Collatz序列的事情。守则如下:number = input() collatz/
Python
35-32/Collatz.py12 追溯(最近一次调用):文件"C:/Users/Gillian/A
浏览 4
提问于2016-03-30
得票数 0
2
回答
如何在ICollection<ICollection<
int
>>
中将
List
<
List
<
int
>>转
换为
C#
c#
我所需要做的就是用另一个数组
List
<
List
<
int
>>的值存储一个新变量ICollection<ICollection<
int
>>,但是我找不到任何方法。守则:
List
<
List
<
int
&g
浏览 5
提问于2020-06-08
得票数 1
回答已采纳
4
回答
当我
在
空格后输入数字时,我会得到一个错误
python
每次我输入002这样的值时,长度都是1,但是它应该是3,我的代码是:
list
1 = [
int
(x) for x in
str
(
list
1)]如果我
在
空格后键入一个数字,我会得到一个错误消息: File "C:\\practice11.py", line 2, in <module><e
浏览 0
提问于2016-10-05
得票数 1
6
回答
Python
2,3干净地将Integer转
换为
"bytes“
python
我找到的最短的方法是:s =
str
(n)s = bytes(
str
(n), "ascii")有没有我错过的更短、更干净的方法?我现在创建了一个lambda表达式来用一个新函数来修复它,但这可能是不必要的。
浏览 9
提问于2012-12-27
得票数 40
回答已采纳
1
回答
如何在
python
中将
list
of
list
(of
List
)转
换为
json数组?
python
、
json
、
list
我
在
寻找如何转换
python
元素列表时遇到了麻烦,如下所示:基本上,我正在尝试将具有
浏览 3
提问于2012-03-19
得票数 5
1
回答
在
Scala
中将
List
[
List
[Any]]转
换为
List
[
List
[String]]
string
、
scala
、
list
我有下面的
List
[
List
[Any]],我想转换成
List
[
List
[String]]。val input:
List
[
List
[Any]] =
List
(
List
(1234),
List
(234, 678),
List
(8765, 90876, 1))val output:
List
[
List
[String]] =
List
(
Lis
浏览 1
提问于2017-09-12
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
史上最全的 Python 3 类型转换指南
python-4函数式编程
VB_Python代码对照算法百题(001)
Python程序员都应该学习掌握的的25个最基本内置函数
PYTHON数据类型
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券