fix:整理

上级 3520ef46
...@@ -4,11 +4,7 @@ ...@@ -4,11 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="6e2dcba5-8bc3-4d83-9a9c-00cb8e922bae" name="Changes" comment="fix:项目分开处理"> <list default="true" id="6e2dcba5-8bc3-4d83-9a9c-00cb8e922bae" name="Changes" comment="fix:numpy 使用" />
<change afterPath="$PROJECT_DIR$/13_高级技巧/13_numpy.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/python-demo.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/python-demo.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
...@@ -251,14 +247,7 @@ ...@@ -251,14 +247,7 @@
<workItem from="1688352051008" duration="671000" /> <workItem from="1688352051008" duration="671000" />
<workItem from="1688353213007" duration="54000" /> <workItem from="1688353213007" duration="54000" />
<workItem from="1688358752469" duration="1216000" /> <workItem from="1688358752469" duration="1216000" />
<workItem from="1688391371881" duration="2757000" /> <workItem from="1688391371881" duration="2793000" />
</task>
<task id="LOCAL-00004" summary="fix:成员方法">
<created>1685543714594</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1685543714594</updated>
</task> </task>
<task id="LOCAL-00005" summary="fix:自己的key不行"> <task id="LOCAL-00005" summary="fix:自己的key不行">
<created>1685544241606</created> <created>1685544241606</created>
...@@ -596,7 +585,14 @@ ...@@ -596,7 +585,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1688347105382</updated> <updated>1688347105382</updated>
</task> </task>
<option name="localTasksCounter" value="53" /> <task id="LOCAL-00053" summary="fix:numpy 使用">
<created>1688438009416</created>
<option name="number" value="00053" />
<option name="presentableId" value="LOCAL-00053" />
<option name="project" value="LOCAL" />
<updated>1688438009417</updated>
</task>
<option name="localTasksCounter" value="54" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -616,7 +612,6 @@ ...@@ -616,7 +612,6 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<option name="CHECK_NEW_TODO" value="false" /> <option name="CHECK_NEW_TODO" value="false" />
<MESSAGE value="fix:整理知识点" />
<MESSAGE value="fix:异步执行" /> <MESSAGE value="fix:异步执行" />
<MESSAGE value="fix:算法题目" /> <MESSAGE value="fix:算法题目" />
<MESSAGE value="fix:移除元素" /> <MESSAGE value="fix:移除元素" />
...@@ -641,7 +636,8 @@ ...@@ -641,7 +636,8 @@
<MESSAGE value="fix:链表 两数相加" /> <MESSAGE value="fix:链表 两数相加" />
<MESSAGE value="fix:删除chatgpt" /> <MESSAGE value="fix:删除chatgpt" />
<MESSAGE value="fix:项目分开处理" /> <MESSAGE value="fix:项目分开处理" />
<option name="LAST_COMMIT_MESSAGE" value="fix:项目分开处理" /> <MESSAGE value="fix:numpy 使用" />
<option name="LAST_COMMIT_MESSAGE" value="fix:numpy 使用" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
...@@ -757,6 +753,7 @@ ...@@ -757,6 +753,7 @@
<SUITE FILE_PATH="coverage/python_demo$problem_solving_09.coverage" NAME="problem_solving_09 Coverage Results" MODIFIED="1687436865797" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题" /> <SUITE FILE_PATH="coverage/python_demo$problem_solving_09.coverage" NAME="problem_solving_09 Coverage Results" MODIFIED="1687436865797" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题" />
<SUITE FILE_PATH="coverage/python_demo$problem_solving_26.coverage" NAME="problem_solving_26 Coverage Results" MODIFIED="1688180543971" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题/day03" /> <SUITE FILE_PATH="coverage/python_demo$problem_solving_26.coverage" NAME="problem_solving_26 Coverage Results" MODIFIED="1688180543971" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题/day03" />
<SUITE FILE_PATH="coverage/python_demo$problem_solving_03.coverage" NAME="problem_solving_03 Coverage Results" MODIFIED="1687394007041" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题" /> <SUITE FILE_PATH="coverage/python_demo$problem_solving_03.coverage" NAME="problem_solving_03 Coverage Results" MODIFIED="1687394007041" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题" />
<SUITE FILE_PATH="coverage/python_demo$13_numpy.coverage" NAME="13_numpy Coverage Results" MODIFIED="1688437985729" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/13_高级技巧" />
<SUITE FILE_PATH="coverage/python_demo$test.coverage" NAME="test Coverage Results" MODIFIED="1687173284032" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/05_数据容器" /> <SUITE FILE_PATH="coverage/python_demo$test.coverage" NAME="test Coverage Results" MODIFIED="1687173284032" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/05_数据容器" />
<SUITE FILE_PATH="coverage/python_demo$problem_solving_15.coverage" NAME="problem_solving_15 Coverage Results" MODIFIED="1687503685240" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题/day02" /> <SUITE FILE_PATH="coverage/python_demo$problem_solving_15.coverage" NAME="problem_solving_15 Coverage Results" MODIFIED="1687503685240" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/14_刷题/day02" />
<SUITE FILE_PATH="coverage/python_demo$01_2_while_1_100.coverage" NAME="01_2_while循环练习题_求1-100的和 Coverage Results" MODIFIED="1685618959790" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/04_Python循环语句" /> <SUITE FILE_PATH="coverage/python_demo$01_2_while_1_100.coverage" NAME="01_2_while循环练习题_求1-100的和 Coverage Results" MODIFIED="1685618959790" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/04_Python循环语句" />
......
# 使用urllib发送GET请求的示例代码如下:
import urllib.request
response = urllib.request.urlopen('https://www.baidu.com/')
html = response.read()
print(html)
# 使用requests发送GET请求的示例代码如下:
import requests
response = requests.get('https://www.baidu.com/')
print(response.text)
# 对于POST请求,您可以通过向请求函数传递data参数来发送数据,如下所示:
import urllib.request
import urllib.parse
url = 'https://www.baidu.com/'
values = {'name': 'John', 'age': 25}
data = urllib.parse.urlencode(values)
data = data.encode('ascii') # data应该是bytes类型
req = urllib.request.Request(url, data)
response = urllib.request.urlopen(req)
print(response.read())
# 使用requests发送POST请求的示例代码如下:
import requests
url = 'https://www.baidu.com/'
values = {'name': 'John', 'age': 25}
response = requests.post(url, data=values)
print(response.text)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册