E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
cpython
python中怎么编写程序_python写完程序怎么运行
注意:以上两种运行方式,都是以
CPython
解释器来编译运行的。当然也可以将py
蛋糖
·
2025-02-06 12:50
python中怎么编写程序
如何在Python中调用C语言代码
1.使用C扩展
CPython
还为开发者实现了一个有趣的特性,使用Python可以轻松调用C代码开发者有三种方法可以在自己的Python代码中来调用C编写的函数:ctypes,SWIG,Python/CAPI
奇异空间里的猫
·
2025-02-04 21:03
python
cpython
【异常】Python环境中没有安装 `openpyxl` 模块提示ModuleNotFoundError: No module named ‘openpyxl‘
Project\xxx\.venv\Scripts\python.exe-Xpycache_prefix=D:\Users\xxx\AppData\Local\JetBrains\PyCharmCE2024.2\
cpython
-cache"E
本本本添哥
·
2025-02-04 21:01
Python
1024程序员节
【python基础】 01 - python解释器、Pycharm、python注释
1.解释器解释器的作用:将代码翻译成计算机能够识别的0、1序列python解释器的种类
CPython
:C语言开发的解释器(官方),应用最为广泛IPython:基于
CPython
的交互式解释器其他解释器:
Cannta
·
2025-02-04 19:53
Python
python
pycharm
开发语言
python多线程、多进程和线程池编程
python多线程、多进程和线程池编程python中的GIL在Python中,GIL或全局解释器锁(GlobalInterpreterLock)是一个在
CPython
解释器中实现的机制,它确保任何时候只有一个线程可以执行
NickDeCodes
·
2025-02-04 12:26
python
python
多线程
多进程
python GIL 全局解释器锁
个人理解:GIL只是
CPython
的产物(参考:python解释器)GIL:创建python时只考虑到单核,为了解决多线程数据的完整性和同步状态的一把全局排
嘉嘉嘉Jessie
·
2025-02-03 22:03
Python
python
开发语言
后端
纯Python环境(
CPython
)的安装与使用
WhylearnPython?WebandInternetDevelopmentScientificandNumericPythoniswidelyusedinscientificandnumericcomputing:SciPyisacollectionofpackagesformathematics,science,andengineering.Pandasisadataanalysisand
薯仔的土小豆
·
2025-02-03 22:28
Python
python
人工智能
数据分析
c与python-Python与
Cpython
甚至我在理解
CPython
,JPython,IronPython,PyPy之间的区别时也遇到了相同的问题。
weixin_37988176
·
2025-02-03 22:28
理解 Python 解释器:
CPython
与 IPython 的比较及选择指南
理解Python解释器:
CPython
与IPython的比较及选择指南在选择适合自己需求的Python解释器时,理解
CPython
和IPython之间的主要差异至关重要。
YRr YRr
·
2025-02-03 21:26
python
python
ipython
开发语言
Python、
CPython
、Pythonnet、IronPython
通常说的Python是
CPython
,采用C++实现的运行环境。Pythonnet
QQ_370566617
·
2025-02-03 21:55
python
语言
.net
shell
脚本
扩展
persistent_homology_cpu.
cpython
-37m-x86_64-linux-gnu.so: No such file or directory类似问题的解决思路
这篇博客也就是简单记录一下。由于工作需要,想尝试一下这篇论文的工作:https://github.com/ljj-cyber/TopoGDN发现很多人真是开源不用脑子,自己也不测试一下(当然不是针对这个作者),只是感觉大家都太不认真了(草台班子太严重)。总结一下遇到的问题:首先,看作者这里介绍:Toinstallthisproject,youneedtoinstallthefollowingPyt
蛐蛐蛐
·
2025-02-02 13:46
深度学习
科研工具
Python技巧
linux
运维
服务器
Python GIL(全局解释器锁)机制对多线程性能影响的深度分析
本文将主要基于
CPython
(用C语言实现的Python解释器,也是目前应用最广泛的Python解释器)展开讨论。GIL的技术定义GIL(GlobalInterprete
·
2025-01-31 16:25
人工智能机器学习python
实验踩坑 flash_attn_2_cuda undifiend symol
Failedtoimporttransformers.models.llama.modeling_llamabecauseofthefollowingerror(lookuptoseeitstraceback):…/lib/python3.10/site-packages/flash_attn_2_cuda.
cpython
崩溃李
·
2025-01-28 00:51
linux
LLaVA微调debug:ImportError: xxx/flash_attn_2_cuda.
cpython
-310-x86_64-linux-gnu.so: undefined symbol:
完整报错信息:ImportError:/home/linjl/anaconda3/envs/sd/lib/python3.10/site-packages/flash_attn_2_cuda.
cpython
同屿Firmirin
·
2025-01-28 00:46
大模型debug笔记
linux
运维
服务器
深度学习
语言模型
《
CPython
Internals》读后感
一、为什么选择这本书?Python是本人工作中最常用的开发语言,为了加深对Python的理解,更好的掌握Python这门语言,所以想对Python解释器有所了解,看看是怎么使用C语言来实现Python的,以期达到对Python语言的掌握达到精通的程度,。关于Python解释器的书不多——AnthonyShaw写的《CPythonInternals》,陈儒写的《Python源码剖析》。因为《CPyt
·
2025-01-27 17:34
python
《
CPython
Internals》阅读笔记:p360-p377
《CPythonInternals》学习第20天,p360-p377总结,总计18页。一、技术总结1.seaborn可视化工具。2.dtrace(1)安装sudoapt-getinstallsystemtap-sdt-dev(2)编译./configure--with-dtracemakecleanmake3.snakeviz适用于cProfile的可视化工具。二、英语总结(生词:0)无。关于英语
·
2025-01-26 16:31
python
《
CPython
Internals》阅读笔记:p336-p352
sudoaptinstallgdb(2)创建.gdbinit文件touch~/.gdbinitvim~/.gdbinit(3)配置.gdbinit文件add-auto-load-safe-path/project/
cpython
codists
·
2025-01-24 08:47
读书笔记
python
《
CPython
Internals》阅读笔记:p336-p352
sudoaptinstallgdb(2)创建.gdbinit文件touch~/.gdbinitvim~/.gdbinit(3)配置.gdbinit文件add-auto-load-safe-path/project/
cpython
·
2025-01-24 02:38
python
《
CPython
Internals》阅读笔记:p285-p328
《CPythonInternals》学习第15天,p285-p328总结,总计44页。一、技术总结1.shallowcomparisonp285,InObjectsobject.c,thebaseimplementationoftheobjecttypeiswritteninpureCcode.Therearesomeconcreteimplementationsofbasiclogic,like
codists
·
2025-01-23 11:49
读书笔记
python
《
CPython
Internals》阅读笔记:p250-p284
《CPythonInternals》学习第14天,250-p284总结,总计25页。一、技术总结介于我觉得作者写得乱七八糟的,读完我已经不想说话了,所以今日无技术总结。二、英语总结(生词:2)1.spawn(1)spawn:来自于词根expandere。(2)expandere:ex-(“out”)+pandere(“tospread”)spawn原来的意思是“spreadingoutoffish
codists
·
2025-01-23 11:19
读书笔记
python
《
CPython
Internals》阅读笔记:p221-p231
《CPythonInternals》学习第12天,p221-p231总结,总计11页。一、技术总结无。二、英语总结(生词:2)1.atatimeidiom.separately(单独地)inthespecifiedgroups(一次)。示例:(1)Icanonlydoonethingatatim(我一次只能做一件事)。(2)Wecarriedtheboxestwoatatimeupthestair
codists
·
2025-01-23 11:49
笔记
《
CPython
Internals》阅读笔记:p152-p176
《CPythonInternals》学习第10天,p152-p176总结,总计25页。一、技术总结1.addinganitemtoalistmy_list=[]my_list.append(obj)上面的代码涉及两个指令:LOAD_FAST,LIST_APPEND。整章看下来这有这点算是可以记的了,其它的只感觉作者在零零碎碎的罗列内容。二、英语总结(生词:1)无。关于英语的注解同步更新汇总到htt
codists
·
2025-01-23 11:48
读书笔记
python
《
CPython
Internals》阅读笔记:p1-p19
《CPythonInternals》学习第1天,p1-p19总结,总计19页。一、技术总结无。二、英语总结(生词:2)1.humblevshumbled(1)humble:humus(“earth”)adj.字面意思是“ontheground”,后面引申为“lowlyinkind,state,condition(卑微)”,“notproudthatyouareimportant(谦卑)”。(2)h
codists
·
2025-01-23 11:18
笔记
《
CPython
Internals》阅读笔记:p329-p335
《CPythonInternals》学习第16天,p329-p335总结,总计7页。一、技术总结1.debuggingp331,Therearetwotypesofdebugger,consoleandvisual——作者将debugger分为两类:(1)console:lldb(MAC系统使用),GDB(Linux系统使用))。(2)visual:VisualStudioDebugger,CLi
codists
·
2025-01-23 10:13
读书笔记
python
安装线程自由(无GIL锁)Python及Pytorch方法
参考资料:https://py-free-threading.github.io/installing_
cpython
/https://github.com/pytorch/pytorch/issues
为什么每天的风都这么大
·
2025-01-23 08:55
python
pytorch
开发语言
《
CPython
Internals》阅读笔记:p329-p335
《CPythonInternals》学习第16天,p329-p335总结,总计7页。一、技术总结1.debuggingp331,Therearetwotypesofdebugger,consoleandvisual——作者将debugger分为两类:(1)console:lldb(MAC系统使用),GDB(Linux系统使用))。(2)visual:VisualStudioDebugger,CLi
·
2025-01-23 05:27
python
pg使用python编写存储过程_postgresql – 可以在Postgres Python存储过程中使用NLTK
您可以在PL/Python存储过程或触发器中使用几乎任何Python库.概念要理解的关键点是PL/Python是
CPython
(无论如何都在PostgreSQL中包括9.3);它使用与普通独立Python
耶律大石
·
2025-01-23 01:57
Python 实现简单的爬虫
Python是一种跨平台的计算机程序设计语言,面向对象动态类型语言,Python是纯粹的自由软件,源代码和解释器
cpython
遵循GPL(GNUGeneralPublicLicense)协议,随着版本的不断更新和语言新功能的添加
Java进阶营菌
·
2025-01-22 16:47
程序员
职场
Python
python
爬虫
后端
《
CPython
Internals》阅读笔记:p285-p328
《CPythonInternals》学习第15天,p285-p328总结,总计44页。一、技术总结1.shallowcomparisonp285,InObjectsobject.c,thebaseimplementationoftheobjecttypeiswritteninpureCcode.Therearesomeconcreteimplementationsofbasiclogic,like
·
2025-01-21 22:53
python
计算机系统原理:一些断言
同样地,Python的
CPython
实现也是先将源代码编译成字节码,然后由Python虚拟机执行。
梅见十柒
·
2025-01-21 09:23
计算机系统原理
经验分享
笔记
《
CPython
Internals》阅读笔记:p177-p220
《CPythonInternals》学习第11天,p177-p220总结,总计44页。一、技术总结1.memoryallocationinC(1)staticmemeoryallocationMemoryrequirementsarecalculatedatcompiletimeandallocatedbytheexecutablewhenitstarts.(2)automaticmemeorya
codists
·
2025-01-20 18:04
读书笔记
python
《
CPython
Internals》阅读笔记:p250-p284
《CPythonInternals》学习第14天,250-p284总结,总计25页。一、技术总结介于我觉得作者写得乱七八糟的,读完我已经不想说话了,所以今日无技术总结。二、英语总结(生词:2)1.spawn(1)spawn:来自于词根expandere。(2)expandere:ex-("out")+pandere("tospread")spawn原来的意思是“spreadingoutoffish
·
2025-01-20 18:03
python
《
CPython
Internals》阅读笔记:p232-p249
《CPythonInternals》学习第13天,p232-p249总结,总计18页。一、技术总结无。二、英语总结(生词:1)1.overhead(1)overhead:over-("above")+head(“toppart,uppermostsection”)overhead的字面意思是:abovethehead,后来演变成"representthingssituatedaboveormeta
·
2025-01-20 03:13
python
Python 潮流周刊#81:在个人电脑上运行 GPT-4 级别的大模型(摘要)
以下是本期摘要:文章&教程①在个人电脑上运行GPT-4级别的大模型②PEP-768:
CPython
的安全外部调试接口③深入探究Cele
·
2025-01-19 02:26
python
《
CPython
Internals》阅读笔记:p221-p231
《CPythonInternals》学习第12天,p221-p231总结,总计11页。一、技术总结无。二、英语总结(生词:2)1.atatimeidiom.separately(单独地)inthespecifiedgroups(一次)。示例:(1)Icanonlydoonethingatatim(我一次只能做一件事)。(2)Wecarriedtheboxestwoatatimeupthestair
·
2025-01-18 05:10
python
《
CPython
Internals》阅读笔记:p1-p19
《CPythonInternals》学习第1天,p1-p19总结,总计19页。一、技术总结无。二、英语总结(生词:2)1.humblevshumbled(1)humble:humus(“earth”)adj.字面意思是“ontheground”,后面引申为“lowlyinkind,state,condition(卑微)”,"notproudthatyouareimportant(谦卑)"。(2)h
·
2025-01-18 01:33
python
《
CPython
Internals》阅读笔记:p76-p95
《CPythonInternals》学习第5天,p76-p95总结,总计20页。一、技术总结无。二、英语总结(生词:1)1.checkvi/vt.toexamsthtoensureitiscorrect,true,oringoodcondition.示例:(1)AfterI'dfinishedthetest,Icheckedmyanswersformistakes.这种用法比较常见。(2)Unli
·
2025-01-17 05:39
python
《
CPython
Internals》阅读笔记:p61-p75
《CPythonInternals》学习第4天,p61-p75总结,总计15页。一、技术总结1.编译器类型(1)self-hostedcompilerSelf-hostedcompilersarecompilerswritteninthelanguagetheycompile,suchastheGocompiler.Thisisdonebyaprocessknownasbootstrapping.
·
2025-01-17 05:09
python
《
CPython
Internals》阅读笔记:p43-p60
《CPythonInternals》学习第3天,p43-p60总结,总计18页。一、技术总结1.编译所需要的packagesudoaptinstall-ybuild-essentiallibssl-devzlib1g-devlibncurses5-dev\libncursesw5-devlibreadline-devlibsqlite3-devlibgdbm-dev\libdb5.3-devlib
·
2025-01-17 05:38
python
《
CPython
Internals》阅读笔记:p177-p220
《CPythonInternals》学习第11天,p177-p220总结,总计44页。一、技术总结1.memoryallocationinC(1)staticmemeoryallocationMemoryrequirementsarecalculatedatcompiletimeandallocatedbytheexecutablewhenitstarts.(2)automaticmemeorya
·
2025-01-17 04:23
python
《
CPython
Internals》阅读笔记:p151-p151
《CPythonInternals》学习第9天,p151-p1510总结,总计1页。一、技术总结无。二、英语总结(生词:1)1.marshal(1)marshalingMarshallingormarshaling(USspelling)istheprocessoftransformingthememoryrepresentationofanobjectintoadataformsuitablef
·
2025-01-16 18:14
python
《
CPython
Internals》阅读笔记:p118-p150
《CPythonInternals》学习第8天,p118-p150总结,总计33页。一、技术总结补充一些本人整理的关于Context-FreeGrammar(CFG)的知识。1.symbol(符号)Amathematicalsymbolisafigureoracombinationoffiguresthatisusedtorepresentamathematicalobject(符号是一个数字或数
·
2025-01-16 18:09
python
《
CPython
Internals》阅读笔记:p97-p117
《CPythonInternals》学习第7天,p97-p117总结,总计21页。一、技术总结1.词法分析(lexicalanalysis)根据《Compilers-Principles,Techniques,andTools》(《编译原理》第2版)第5页:Thefirstphaseofacompileriscalledlexicalanalysisorscanning.Thelexcicalan
·
2025-01-16 18:03
python
《
CPython
Internals》阅读笔记:p96-p96
《CPythonInternals》学习第6天,p96-p96总结,总计1页。一、技术总结1.parser-tokenizerp92,Creatingaconcretesyntaxtreeusingaparser-tokenizer,orlexer.p96,CPythonhasaparser-tokenizermodule,writteninC.当做这在92页提到parser-tokenizer的
·
2025-01-16 18:01
python
python io密集型应用案例-Python中单线程、多线程和多进程的效率对比实验实例
python的多进程性能要明显优于多线程,因为
cpython
的GIL对性能做了约束。
weixin_39635648
·
2024-09-14 03:52
Python打包工具
核心功能是其使用Python实现的与
CPython
兼容的编译器,直接将Python代码编译为二进制。虽然编译后的代码执行更快,但不能
开源技术
·
2024-09-11 20:26
Python
python
开发语言
后端
python调用pyd文件_python的py文件生成pyd文件,pycharm直接调用pyd文件
在此贴一下生成pyd到调用pyd文件的方法供参考:1.新建一个setup.py文件:#用
cpython
生成p
weixin_39799561
·
2024-09-10 11:05
python调用pyd文件
python线程暂停_python3线程启动与停止
www.cnblogs.com/lcchuguo/p/4687348.htmlPythonGIL(GlobalInterpreterLock)GIL并不是Python的特性,它是在实现Python解析器(
CPython
weixin_39719585
·
2024-09-07 20:09
python线程暂停
pythonnet_python调用.net动态库
#python调用.net动态库###pythonnet简介------------------------------pythonnet是
cpython
的扩展-pythonnet提供了
cpython
和
weixin_39682944
·
2024-09-06 14:16
pythonnet
python是用什么实现的?
用C语言编写实现的Python,又称为
CPython
。平时我们所讨论的Python,指的其实就是
CPython
。
光电的一只菜鸡
·
2024-09-02 07:21
python
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他