JavaShuo
栏目
标签
pygame学习异常之TypeError: argument 1 must be 2-item sequence, not int
时间 2021-01-02
栏目
游戏
繁體版
原文
原文链接
pycharm控制台: 代码: 出错是因为 pygame.display.set_mode(1200,800) 传入的参数是int,纠正如下: pygame.display.set_mode((1200,800)) 或 pygame.display.set_mode([1200,800]) 查看该函数概念 参数resolution =(0,0)为分辨率,传入的形式如下: pygame文档中说如下也
>>阅读原文<<
相关文章
1.
TypeError: name() argument 1 must be unicode, not str
2.
TypeError: write() argument must be str, not bytes
3.
TypeError: add() argument after * must be an iterable, not Settings
4.
super() fails with error: TypeError “argument 1 must be type, not classobj”
5.
问题:报错 Unrecoverable error: TypeError('argument 1 must be an integer, not _subprocess_ha ndle',)
6.
TypeError: conv2d(): argument ‘input‘ (position 1) must be Tensor, not NoneType
7.
【Django】TypeError: int() argument must be a string, a bytes-like object or a number...
8.
python提示错误TypeError: write() argument must be str, not bytes
9.
Django admin argument to reversed() must be a sequence
10.
TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string
更多相关文章...
•
PHP 7 异常
-
PHP 7 新特性
•
PHP 异常处理
-
PHP教程
•
Tomcat学习笔记(史上最全tomcat学习笔记)
•
Kotlin学习(一)基本语法
相关标签/搜索
sequence
argument
typeerror
1.pygame
pygame
int
异常
常见异常
mysql学习-1
学习之道
游戏
PHP教程
PHP 7 新特性
Thymeleaf 教程
学习路线
初学者
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
windows下配置opencv
2.
HED神经网
3.
win 10+ annaconda+opencv
4.
ORB-SLAM3系列-多地图管理
5.
opencv报错——(mtype == CV_8U || mtype == CV_8S)
6.
OpenCV计算机视觉学习(9)——图像直方图 & 直方图均衡化
7.
【超详细】深度学习原理与算法第1篇---前馈神经网络,感知机,BP神经网络
8.
Python数据预处理
9.
ArcGIS网络概述
10.
数据清洗(三)------检查数据逻辑错误
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
TypeError: name() argument 1 must be unicode, not str
2.
TypeError: write() argument must be str, not bytes
3.
TypeError: add() argument after * must be an iterable, not Settings
4.
super() fails with error: TypeError “argument 1 must be type, not classobj”
5.
问题:报错 Unrecoverable error: TypeError('argument 1 must be an integer, not _subprocess_ha ndle',)
6.
TypeError: conv2d(): argument ‘input‘ (position 1) must be Tensor, not NoneType
7.
【Django】TypeError: int() argument must be a string, a bytes-like object or a number...
8.
python提示错误TypeError: write() argument must be str, not bytes
9.
Django admin argument to reversed() must be a sequence
10.
TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string
>>更多相关文章<<