Code Monkey home page Code Monkey logo

python's Introduction

Python

Python学习 想在哪个文件夹下打开jupyter,就在相对应的文件夹下打开终端 运行 jupyter-notebook

点云相关处理

Tutorial

  • 安装requirement.txt中的包 pip3 install -r requirement.txt

python3_tutorials_菜鸟教程

学习网站:http://www.runoob.com/python3/python3-tutorial.html

python3_tutorials_莫凡

学习视频网址:https://www.bilibili.com/video/av16926522/?p=2

北邮《Python编程与实践》课程 (2020)

学习视频网址:https://www.bilibili.com/video/BV1b7411N7P2

  • 解决Python代码编码问题 Non-UTF-8 code starting with '\xc4' in file 导致出错的根源就是编码问题。 解决方案是: 在程序最上面加上:
# coding=gbk  
  • Python 报错 TypeError: 'str' object is not callable
page = fi.write(str(response1.read()))  

原因是我的一个变量名叫str和python api的某个str函数名一样,导致

检查你的代码中变量的名字,看有没有变色的,就是设别为底层函数的即可

  • pip list

该命令查看的是Python安装的第三方模块。

self

命令行

  • 从shell中退出python命令:是. ... 从shell(终端)中退出python:. 1、输入命令行:$ exit(). 2、快捷键: ctrl+Z.

issues

  1. 同时装了Python3和Python2,怎么用pip?
  2. ImportError: DLL load failed: 找不到指定的模块。
  3. 安装Python模块时,报错[error] Microsoft Visual C++ 14.0 is required
  4. 出现ReadTimeoutError(self._pool, None, 'Read timed out.')
  5. python 各种包下载大全网址
  6. 如何简单地理解Python中的if name == 'main'
  7. python中出现IndentationError:unindent does not match any outer indentation level错误
  8. SyntaxError: invalid syntax
  9. TypeError: slice indices must be integers or None or have an index method
  10. UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 115: ille
  11. 打开Anaconda Prompt 显示显示python已停止工作
  12. NoPackagesFoundError: Package missing in current win-64 channels: - cudatoolkit 7.5 2

学习资料及视频

python's People

Contributors

huangcongqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python's Issues

pip 安装指定版本

pip在安装包的时候可以不需要从网上下载,以windows的scipy为例

pip install scipy==0.15.1

以上表示安装0.15.1版本的scipy,这里用”==”接版本,如果权限不够则用管理员打开终端,或者

pip install --user scipy==0.15.1

作者:Mr-Cat伍可猫
来源:CSDN
原文:https://blog.csdn.net/Mr_Cat123/article/details/80426695
版权声明:本文为博主原创文章,转载请附上博文链接!

python中出现IndentationError:unindent does not match any outer indentation level错误

1.对于此错误,最常见的原因是,的确没有缩进。根据错误提示的行数,去代码中看了下,看起来没有什么问题呀,都有缩进,而且语法也没有错误呀。

2.仔细研究了下代码,发现真的看不出什么问题,突然想到了,把当前python脚本的所有字符(包括空格和tab字符)都显示出来看看到底有没有缩进或者是其他特殊的字符。

作者:HelloWorld_EE
来源:CSDN
原文:https://blog.csdn.net/u010412719/article/details/47089473

Anaconda Navigator打不开:Navigator Error

Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 115, in start_app
window = run_app(splash)
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 58, in run_app
window = MainWindow(splash=splash)
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 160, in __init__
self.api = AnacondaAPI()
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 1205, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 65, in __init__
self._conda_api = CondaAPI()
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1622, in CondaAPI
CONDA_API = _CondaAPI()
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 340, in __init__
self.set_conda_prefix()
File "D:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 489, in set_conda_prefix
self.ROOT_PREFIX = info['root_prefix']
TypeError: byte indices must be integers or slices, not str

Python 的list.append()返回值是None

语法
append()方法语法:

list.append(obj)

该方法无返回值,但是会修改原来的列表。

list.append(obj)  正确
list = list.append(obj)  错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.