- 博客(5)
- 收藏
- 关注
原创 ANSYS: workbench model 模块无法打开
提示报错:Error while waiting for Mechanical initialization to complete. 未将对象引用设置到对象的实例,点开detail后出现长串英文。解决方案:Manually register the DLLs listed below by starting a Command Prompt (DOS) with "run as administrator" , then typing:(管理员模式运行cmd,输入以下内容)regsvr32.
2022-05-02 15:40:25 9396 1
原创 python入门:列表与字典区别
#字典与列表#列表spam = ['bat', 'hat', 'cat', 'fat']print(spam[0:2])#列表只能引索整数#元组#元组是不可变的列表eggs = ('hello', 12, 'aa')#字典mycat = {'size': 'fat', 'color':'orange', 'disposition': 'load'}#对比1:与列表相比,字典的可以引索更多的数据类型,字典的引索称为键#如size为键,fat为对应的值#对比2#字典里的项是不排序的.
2021-10-13 15:23:09 185
原创 Python编程快速上手 AI Sweigart 5.6.2好玩的物品清单
stuff = {'rope': '3','torch': '6','gold coin': '111','dagger': '6'}def displayInventory(inventory): print('Inventory:') item_total = 0 for k,v in inventory.items(): print(v + ' '+ k) item_total = item_total + int(v) prin..
2021-07-22 16:06:37 153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人