Today is a big day! Maybe even bigger than the birthday next week.
One of my teaching designs was printed in the collection of works, which gave me a big surprise. This reminds me of my another articles,which is scheduled to be published in September.
Originally, this is one of my assignments during the winter vacation. I spent some time revising it over and over again during this summer vacation. So I asked the editor for the latest update and was told that it had been mailed by EMS several days ago.
I checked my inbox and realized that it had arrived three days ago already! What a surprise! It’s just a RCCSE though. How I wished that I had my own CSSCI! Daydreaming[黑线]
After returning home, I showed it to the kids and aroused their exclamation[兔子]
One of my teaching designs was printed in the collection of works, which gave me a big surprise. This reminds me of my another articles,which is scheduled to be published in September.
Originally, this is one of my assignments during the winter vacation. I spent some time revising it over and over again during this summer vacation. So I asked the editor for the latest update and was told that it had been mailed by EMS several days ago.
I checked my inbox and realized that it had arrived three days ago already! What a surprise! It’s just a RCCSE though. How I wished that I had my own CSSCI! Daydreaming[黑线]
After returning home, I showed it to the kids and aroused their exclamation[兔子]
我想去看看我的月亮,看他一直悬在天上闪闪发光。
I want to see my moon, and see it shining in the sky.
#任嘉伦#
#任嘉伦暮色心约#
#任嘉伦无忧渡#
#任嘉伦烈焰之武庚纪#
#任嘉伦流水迢迢#
✨ 任嘉伦暮色心约祁连山| 任嘉伦请君陆炎|任嘉伦无忧渡宣夜|与君初相识恰似故人归长意|蓝焰突击李溪成 |周生如故一生一世周生辰|任嘉伦烈焰之武庚纪@任嘉伦Allen
I want to see my moon, and see it shining in the sky.
#任嘉伦#
#任嘉伦暮色心约#
#任嘉伦无忧渡#
#任嘉伦烈焰之武庚纪#
#任嘉伦流水迢迢#
✨ 任嘉伦暮色心约祁连山| 任嘉伦请君陆炎|任嘉伦无忧渡宣夜|与君初相识恰似故人归长意|蓝焰突击李溪成 |周生如故一生一世周生辰|任嘉伦烈焰之武庚纪@任嘉伦Allen
pycharm 的debug调试
和Jupyter notebook或者终端逐行运行不同,在pycharm中如何调试,需要debug的断点调试功能:断点调试是指在程序的某一行设置一个断点,调试时,程序运行到这一行就会停住(断点处不运动),然后你可以使用step over,step into等逐步往下调试,旁边有变量变化框,以及consolo。
1-断点:打断点,可以打一个断点,代表到这一行停止运行,也可以打多个断点,在断点区间运行。(一定要注意debug时候蓝色背景到哪里,是那里即将要debug,跳过后才会被运行过)。
在代码左边的行数旁边鼠标点击会出现一个红圈即断点,再点击会红圈消失。打完断点,点击run code旁边的虫子(run debug)
2-逐步step into/step out/step over/step into my code 的区别。
run debug后,发现蓝色背景在断点处停止,并在这一行代码后面显示时间等信息。之后点击step into等对后面的代码,实现逐行调试。
3-python console:与terminal经常在一起出现。terminal主要还是pip安装包等系统命令。而python console就类似jupyter notebook,直接提供一个python逐行的交互界面,可以看作是一个python shell。或者换句话说你也可以通过terminal,然后输入python 进入到python 程序里面,实现类似console的功能。
很多人喜欢用debug时候同时查看console,他会把程度的整个运行给你展示出来。但是如果你发现不能交互输入命令(没有>>>这个符号,需要点击:Show Python Prompt。
除此,最主要还是你选中代码,右键Execute selection in Python Console(切记不要误点成Run File in Python Console ),这样就可以实现这一部分代码的run。
有时候你会发现console有的人是>>>,而有的人是类似ipython或者jupyter notebook 显示序号In[1]等。
(1)-pycharm:设置-build,execution,delpoyment-console-use IPython if available。重启
(2)发现勾选后还不行,大概率是你的项目环境没有ipython这个包,需要install这个包。
在环境中install包:
普通环境:直接终端激活环境然后pip install ipython;pycharm的终端(直接默认进入该环境) pip;或者干脆在设置找到你的解释器(环境),搜这个包然后添加;
conda环境:类似上面。只不过还可以在anocanda里面选择自己的环境,然后搜包添加。
我遇到的问题是当时创建的是conda,但是我pycharm动了右下角的解释器换成了系统的,导师环境紊乱缺文件,console不能连接debug。
和Jupyter notebook或者终端逐行运行不同,在pycharm中如何调试,需要debug的断点调试功能:断点调试是指在程序的某一行设置一个断点,调试时,程序运行到这一行就会停住(断点处不运动),然后你可以使用step over,step into等逐步往下调试,旁边有变量变化框,以及consolo。
1-断点:打断点,可以打一个断点,代表到这一行停止运行,也可以打多个断点,在断点区间运行。(一定要注意debug时候蓝色背景到哪里,是那里即将要debug,跳过后才会被运行过)。
在代码左边的行数旁边鼠标点击会出现一个红圈即断点,再点击会红圈消失。打完断点,点击run code旁边的虫子(run debug)
2-逐步step into/step out/step over/step into my code 的区别。
run debug后,发现蓝色背景在断点处停止,并在这一行代码后面显示时间等信息。之后点击step into等对后面的代码,实现逐行调试。
3-python console:与terminal经常在一起出现。terminal主要还是pip安装包等系统命令。而python console就类似jupyter notebook,直接提供一个python逐行的交互界面,可以看作是一个python shell。或者换句话说你也可以通过terminal,然后输入python 进入到python 程序里面,实现类似console的功能。
很多人喜欢用debug时候同时查看console,他会把程度的整个运行给你展示出来。但是如果你发现不能交互输入命令(没有>>>这个符号,需要点击:Show Python Prompt。
除此,最主要还是你选中代码,右键Execute selection in Python Console(切记不要误点成Run File in Python Console ),这样就可以实现这一部分代码的run。
有时候你会发现console有的人是>>>,而有的人是类似ipython或者jupyter notebook 显示序号In[1]等。
(1)-pycharm:设置-build,execution,delpoyment-console-use IPython if available。重启
(2)发现勾选后还不行,大概率是你的项目环境没有ipython这个包,需要install这个包。
在环境中install包:
普通环境:直接终端激活环境然后pip install ipython;pycharm的终端(直接默认进入该环境) pip;或者干脆在设置找到你的解释器(环境),搜这个包然后添加;
conda环境:类似上面。只不过还可以在anocanda里面选择自己的环境,然后搜包添加。
我遇到的问题是当时创建的是conda,但是我pycharm动了右下角的解释器换成了系统的,导师环境紊乱缺文件,console不能连接debug。
✋热门推荐