- 博客(16)
- 收藏
- 关注
原创 鸿蒙app开发:每天一个小bug:明明添加了animation,动画效果却没有
鸿蒙app开发:每天一个小bug:明明添加了animation,动画效果却没有
2024-02-22 18:09:22 623 1
原创 鸿蒙app开发:每天一个小bug:[Engine Log] can‘t find this page pages The uri of router is not exist
鸿蒙app开发中使用路由完成页面跳转时遇到路径问题
2024-02-07 20:07:33 1579 2
原创 鸿蒙开发:每天一个小bug the size of programs is expected to be 3, but is 2
the size of programs is expected to be 3, but is 2
2024-01-31 20:29:30 2652 1
原创 Only constant XPATH queries are supported
Only constant XPATH queries are supported
2022-11-21 12:55:21 813 1
原创 Pytorch:TypeError: pic should be PIL Image or ndarray. Got <class ‘torch.Tensor‘>
TypeError: pic should be PIL Image or ndarray. Got
2022-11-20 18:41:53 6804
原创 conv2d() received an invalid combination of arguments - got
实战错误:运行该代码无错con=nn.Conv2d(in_channels=3,out_channels=3,kernel_size=(3,3))运行下面出现错误con(img)TypeError: conv2d() received an invalid combination of arguments - got (torch.Size, Parameter, Parameter, tuple, tuple, tuple, int), but expected one of: * (Te
2022-03-12 15:14:07 9370 1
原创 python中大数相除出现精度丢失问题
在我的上一篇文章了,提到了大数相除,数据类型变为float,造成数据丢失,思考了一段时间使用乘法代替除法不出现float即可!但是使用范围不广,可以作为参考思路:n=377112609int(n*(n+1)/2)#结果为:71106960121949744因为除以2 相当于乘以5除以10因此使用乘以5,转换字符串,截取:n=377112609def get(n): sum=n*(n+1)*5 return int(str(sum)[0:-1])get(n)#711069
2022-03-02 14:24:09 1117
原创 Python中int()与浮点数的问题,求解
在使用python求解杨辉三角形时,查出这个问题!int(500000000500000000+2)#500000000500000002然后当使用变量number=1000000000int(number*(number+1)/2)#值为:500000000500000000不清楚为什么,有大神解答一下吗???...
2022-03-01 16:21:55 482
原创 python3.10安装matplotlib错误时
在Termux上,使用python3.10.2安装matplotlib时出现了一系列爆红,头疼找了很多都没有找到可以解决的方法,后来换个思路寻找别人如何安装的,得到解决方法来源链接: Termux安装Python及相关库.是版本问题#使用该命令解决问题pip install matplotlib==3.2.0 相关主要爆红BUILDING MATPLOTLIB python: yes [3.10.2 (main
2022-01-20 20:24:47 4817 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人