pycharm 实践

1 从ide选择的角度说pycharm  http://www.cnblogs.com/chenkai/archive/2013/01/31/2888110.html

2 pycharm 安装  http://www.cnblogs.com/archimedes/p/pycharm-test.html

3 pycharm 的快捷键  http://www.cnblogs.com/Ro0kie/p/5180480.html

4 pycharm 如何调整python的解释版本:http://jingyan.baidu.com/article/fec4bce25f677df2618d8be8.html

5 pycharm 中的命名

我在pycharm 中写的内容及其报错情况如下

#!/usr/bin/env python
import collections
obj = collections.Counter('fdsfsfsfdfsdfs')
print(obj)

D:Python35-32python.exe E:/pythoncode/day3/collections.py
Traceback (most recent call last):
File "E:/pythoncode/day3/collections.py", line 2, in <module>
import collections
File "E:pythoncodeday3collections.py", line 3, in <module>
obj = collections.Counter('fdsfsfsfdfsdfs')
AttributeError: module 'collections' has no attribute 'Counter'

Process finished with exit code 1

####这是由于我命名的 E:/pythoncode/day3/collections.py 和pycharm中自带的collections.py 冲突

我的软件版本:pycharm

python 中自己用得比较习惯(想用)的设置

1 新建的文件中都有默认的设置

比如:每次新建python文件 都有 #!/usr/bin/env pyhthon

设置方法:File--Settings--Editor--Code Style--File and Code Templates --里面有各种默认文件的设置

参考:http://blog.csdn.net/pipisorry/article/details/39909057

原文地址:https://www.cnblogs.com/qing-add/p/5181470.html