python 字符串替换
摘要:python 字符串替换 将一个字符串中的每个空格替换成“%20”。例如,当字符串为 s=‘We Are Happy’.则经过替换之后的字符串为We%20Are%20Happy。 方法一:s.replace(' ','%20') 方法二:用正则表达式 import re s = 'We Are Ha
阅读全文
posted @
2019-11-26 20:21
CCConcerning
阅读(4405)
推荐(0)
python 基础
摘要:python list Python内置的一种数据类型是列表:list。list是一种有序的集合,可以随时添加和删除其中的元素。 Python包含以下函数: cmp(list1, list2) 比较两个列表的元素 max(list) 返回列表元素最大值 min(list) 返回列表元素最小值 lis
阅读全文
posted @
2019-11-25 19:08
CCConcerning
阅读(132)
推荐(0)
执行env.render()渲染环境时报错get_screens raise NotImplementedError('abstract')
摘要:执行env.render()渲染环境时报错get_screens raise NotImplementedError('abstract') 降低pyglet版本:pip install pyglet==1.2.4
阅读全文
posted @
2019-10-27 14:36
CCConcerning
阅读(1179)
推荐(0)
ubuntu无法联网问题:
摘要:控制面板->管理工具->服务,把VMware NAT Service和VMware DHCP Service启动,解决。
阅读全文
posted @
2019-06-13 15:28
CCConcerning
阅读(196)
推荐(0)
Tensorflow快速安装
摘要:pip install --user --index-url https://pypi.douban.com/simple tensorflow==1.8 升级tensorflow: pip install --upgrade --user --index-url https://pypi.doub
阅读全文
posted @
2019-06-04 13:00
CCConcerning
阅读(354)
推荐(0)
环境搭建-maddpg
摘要:一、安装环境 本人搭建的环境:win10 +Anaconda3-4.2.0+TensorFlow 1.13 +gym 0.10 环境搭建过程参考(在此谢过大神!) https://zhuanlan.zhihu.com/p/41954025
阅读全文
posted @
2019-02-24 20:43
CCConcerning
阅读(634)
推荐(0)