打开游戏显示too many arguments.items in the combo

<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">5.0分
<div class="spf_off1" style="width:%">10分
<div class="spf_off1" style="width:%">10分
从2008年-2014年 快猴网一直在努力做到最好
备案编号:粤ICP备号-1Access denied |
used Cloudflare to restrict access
Please enable cookies.
What happened?
The owner of this website () has banned your access based on your browser's signature (3aa5fcae-ua98).OverflowError: range() result has too many items - Python
Show Threads
Show Posts
Expert Programmer
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 0
OverflowError: range() result has too many items
Ok, i'm doing the challenges at mathschallenge.net.
I'm doing problem 3 right now.
Here is the link:
I thought i had my code right, as the example number (13195) shows 5,7,13 and 29 using my program.
So i used it with the proper number (), and it didn't work, it gave me this error:
Traceback (most recent call last):
File &maths3.py&, line 18, in ?
findFactors()
File &maths3.py&, line 12, in findFactors
for i in range (1,x):
OverflowError: range() result has too many items
Ok, so the range() list won't hold that many characters, how will i go about doing this problem now?
Here is my code:
#! /usr/bin/env python
from math import sqrt
factors=[]
def primeCheck(y):
return False
for i in range(int(sqrt(y)) + 1)[2:]:
if y % i == 0:
return False
return True
def findFactors(x):
for i in range (1,x):
if (x % i) == 0:
if primeCheck(i):
factors.append(i)
print factors
findFactors()
If i don't reply for a while it is because i'm going away for a week to the isle of whight.
Programming Guru
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 14
Try using xrange instead of range.
Expert Programmer
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 0
Thanks, it works.
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
code is On
HTML code is Off
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Community Introductions
Application Development
Visual Basic .NET
Visual Basic
Software Design and Algorithms
Other Programming Languages
Script Programming
Bash / Shell Scripting
Sed and Awk
Other Scripting Languages
Web Development and Design
JavaScript and Client-Side Browser Scripting
HTML / XHTML / CSS
Other Web Development Languages
Project Ideas
Existing Project Development
Show Off Your Open Source Projects
Paid Job Offers
Articles and Resources
Book Reviews
Tutorials and Articles
Visual Basic .NET
Visual Basic
HTML / XHTML / CSS
Other Tutorials and Articles
Community Forums
Coder's Corner Lounge
Community Announcements and Feedback
All times are GMT -5. The time now is .
Powered by vBulletin& Version 3.7.0, Copyright &2000 - 2017, Jelsoft Enterprises Ltd.
Copyright &2007 DaniWeb& LLC& [饥荒游戏23版]TMI v0.25常见道具生成mod,完全是无中生 ...
查看: 42477|回复: 8
UID1943456主题阅读权限30帖子精华0积分361金钱3015 荣誉3 人气30 在线时间1314 小时评议0
Lv.3游侠中级会员, 积分 361, 距离下一级还需 139 积分
帖子精华0积分361金钱3015 荣誉3 人气30 评议0
本帖最后由 fanbu 于
10:21 编辑
[饥荒游戏23版]TMI v0.25常见道具生成mod,完全是无中生有,测试用
有时急着对游戏某个部分的内容做测试,也不可能打好几十天,就为了几样道具的测试.而去浪费那么久.
那怎么办呢,这个TMI mod就派上用场了.
全称too many items,和minecraft社区中的一个知名mod名字类似,作用也类似,就是从一个道具表单中选任何你想要的道具,立刻给你就地生成.
版本v0.25.
适用版本,don't starve饥荒游戏23版pc版正式版.
(注意:23版原版rev.89685我没测试,测试的是23版,hotfix 1,rev.89932[win32]可用.还有23版hotfix 1的紧急追加hotfix版本rev.90140[win32],都可用.linux版刚测了一下也可以用,在steam上.)
ds23TMIv025.zip就几十KB大.
解压后应得到ds23TMIv025文件夹.里头有RELEASELOG.txt还有lua文件什么的.
把整个文件夹放到游戏目录的mods下,
应该是和screecher的那个mod文件夹并列.
然后启动游戏吧.在mods界面,把too many items这个mod启用.完了提示你装了mod,你点I understand.就行了.
再开游戏就可以.不建议和任何其他mod搭配使用.
另外,注意此mod大幅消减游戏性,直接给你的感觉就是你完全通关了,玩不下去了的感觉.如果想认真玩,强烈建议不要用这个mod.
进入游戏后,按T键,调出TMI界面,鼠标操作.左键单击物品,就地生成1个对应物品,右键单击物品,就地生成10个物品.
1次不要生成太多,建议不超过10个/每次.
建议没使用过的物品,不要右击生成.
部分物品教特殊,比如萤火虫,生成后直接植入场景,兔子,生成直接在地上跑,而不是进入物品栏.
常见道具,直接掉地上.
科技树合成建筑物,全部需要自己生成材料再合成,不能通过TMI直接实现.但是可道具栏手持的物品,大多可生成.
不过还是建议小心使用.防bug.
最后,给个图,是23版的.
有人说,don't starve饥荒游戏,原版不就22版就结束了么,官方路线图都是那么说的啊,之后就ps4版和DLC了么,哪儿有什么23版,那你看图上那是什么,右上角时钟,那个字体,那是23版特有的!
23版是performance update,和22版区别不大,修正好多bug,小幅调整了已有的一些物品,比如火腿肉棍,花环,冰杖,巨鹿,最终boss远古守卫,什么的.
图上那个版本号查看是游戏中,按backspace退格键实现的.
后续注明:
DLC巨人王朝,有专用的版本,请看:
楼主这个是原版的。
可爱的小花猪
夏磊游侠元勋版主『动作/射击游戏区』侠盗联盟组【组长】侠盗汉化组【监制】永远萌系会员·小花猪·夏磊动作游戏一统江湖.夏磊
UID449654主题阅读权限200帖子精华0积分125354金钱119247 荣誉861 人气21420 在线时间65535 小时评议66
帖子精华0积分125354金钱119247 荣誉861 人气21420 评议66
是楼主自制的MOD?
游戏运行库:http://www.ali213.net/zhuanti/yxk/
UID1943456主题阅读权限30帖子精华0积分361金钱3015 荣誉3 人气30 在线时间1314 小时评议0
Lv.3游侠中级会员, 积分 361, 距离下一级还需 139 积分
帖子精华0积分361金钱3015 荣誉3 人气30 评议0
本帖最后由 fanbu 于
19:25 编辑
xialei_026 发表于
是楼主自制的MOD?
不是啦,斑竹你搞错啦.我不是已经贴了那个mod作者在饥荒游戏官方论坛的发布页了么.只不过原发布页,好像忘了更新v0.25版本,最高到v0.24,估计以后会补上.呵呵.
刚又测试了一下,支持饥荒游戏23版hotfix 1追加hotfix(rev.90423 - 日版本),linux下仍然可用.估计是因为那个hotfix版本基本变动很小的缘故.
UID564264主题阅读权限20帖子精华0积分134金钱1393 荣誉0 人气0 在线时间634 小时评议0
Lv.2游侠会员, 积分 134, 距离下一级还需 66 积分
帖子精华0积分134金钱1393 荣誉0 人气0 评议0
这个工具的第一页道具中 我的版本里 有6个空白的.经测试是汉化后出现.请问有无解决方法?
UID1943456主题阅读权限30帖子精华0积分361金钱3015 荣誉3 人气30 在线时间1314 小时评议0
Lv.3游侠中级会员, 积分 361, 距离下一级还需 139 积分
帖子精华0积分361金钱3015 荣誉3 人气30 评议0
本帖最后由 fanbu 于
10:24 编辑
liqi198607 发表于
这个工具的第一页道具中 我的版本里 有6个空白的.经测试是汉化后出现.请问有无解决方法? ...
这mod本身bug,那几个空格纯属正常。那个渺似是老版游戏本体自带物品,还有一些开发测试用的留用档位,新版游戏本体更新后游戏中不再使用了,所以显示不正常,但是用这个工具可能还能刷出来。
如果是DLC上用,可能见到的空格还要多。
UID8414173主题阅读权限10帖子精华0积分1金钱12 荣誉0 人气0 在线时间0 小时评议0
Lv.1游侠新人, 积分 1, 距离下一级还需 4 积分
帖子精华0积分1金钱12 荣誉0 人气0 评议0
UID8414173主题阅读权限10帖子精华0积分1金钱12 荣誉0 人气0 在线时间0 小时评议0
Lv.1游侠新人, 积分 1, 距离下一级还需 4 积分
帖子精华0积分1金钱12 荣誉0 人气0 评议0
这东西真BT了!!!!
UID9643947主题阅读权限10帖子精华0积分2金钱28 荣誉0 人气0 在线时间1 小时评议0
Lv.1游侠新人, 积分 2, 距离下一级还需 3 积分
帖子精华0积分2金钱28 荣誉0 人气0 评议0
额..........
UID9643947主题阅读权限10帖子精华0积分2金钱28 荣誉0 人气0 在线时间1 小时评议0
Lv.1游侠新人, 积分 2, 距离下一级还需 3 积分
帖子精华0积分2金钱28 荣誉0 人气0 评议0
fanbu 发表于
这mod本身bug,那几个空格纯属正常。那个渺似是老版游戏本体自带物品,还有一些开发测试用的留用档位,新 ...
游侠元勋版主
任职满72个月
元老版主勋章
任职满36个月
任职满12个月
资深版主勋章
任职满24个月
大头像勋章
永久勋章,统一售价:8888金币。购买地址:待定
白金会员勋章
用户积分达到6000
发帖数达到10000
荣誉达到150
特色头衔勋章
版区活动头衔达到三个
高级荣誉勋章
荣誉达到500
人气勋章·高级
人气值达到15000
人气勋章·初级
人气值达到3000
版主评议达到4,勤于处理版务
资深水手勋章
资深水手勋章
2013年度杰出版主勋章
2013年度杰出版主勋章
2014年杰出版主勋章
2014年杰出版主勋章
侠盗工作组一周年专属勋章
侠盗工作组一周年专属勋章
2015年杰出版主勋章
2015年杰出版主勋章
侠盗工作组二周年勋章
侠盗工作组二周年勋章
Powered by

我要回帖

更多关于 too many items 的文章

 

随机推荐