2018年8月11日
摘要: 我出现了报错 Could not find 'cudnn64_7.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable 阅读全文
posted @ 2018-08-11 22:50 蔡军帅 阅读(26872) 评论(0) 推荐(0)
摘要: 我出现了报错Could not find 'cudnn64_7.dll'. TensorFlow requires that this DLL be installed in a directory th... 阅读全文
posted @ 2018-08-11 22:50 蔡军帅 阅读(194) 评论(0) 推荐(0)
摘要: .keys(), .values(), .items() dict1.clear() ,建议清空用.clear(),而不是dict1={},a=b时,a={},b仍有,而a.calear()以后,a... 阅读全文
posted @ 2018-08-11 13:57 蔡军帅 阅读(103) 评论(0) 推荐(0)
摘要: .keys(), .values(), .items() dict1.clear() ,建议清空用.clear(),而不是dict1={},a=b时,a={},b仍有,而a.calear()以后,a、b都为{} dict1.copy()为浅拷贝,浅拷贝地址是不一样的,id()来查看地址,而赋值的话, 阅读全文
posted @ 2018-08-11 13:57 蔡军帅 阅读(117) 评论(0) 推荐(0)
摘要: 字符串类似于元组,不能随意修改,但可以用切片的方式间接修改 字符串各种奇葩的内置方法: 1. .capitalize() 将第一个字母改为大写 2. .casefold() 将所有字母改为小写 3. .center(width) 字符串居中,空格填充 capitalize()把字符串的第一个字符改为 阅读全文
posted @ 2018-08-11 13:05 蔡军帅 阅读(200) 评论(0) 推荐(0)
摘要: 字符串类似于元组,不能随意修改,但可以用切片的方式间接修改字符串各种奇葩的内置方法:1. .capitalize() 将第一个字母改为大写 2. .casefold() 将所有字母改为小写 3.... 阅读全文
posted @ 2018-08-11 13:05 蔡军帅 阅读(138) 评论(0) 推荐(0)