<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>老铁的碎碎念</title><link>https://bannysway.github.io</link><description>自留地，科技、艺术，哲学，文学</description><copyright>老铁的碎碎念</copyright><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><image><url>https://avatars.githubusercontent.com/u/119055643?v=4</url><title>avatar</title><link>https://bannysway.github.io</link></image><lastBuildDate>Sun, 16 Mar 2025 03:31:57 +0000</lastBuildDate><managingEditor>老铁的碎碎念</managingEditor><ttl>60</ttl><webMaster>老铁的碎碎念</webMaster><item><title>Docker基础教程</title><link>https://bannysway.github.io/post/Docker-ji-chu-jiao-cheng.html</link><description>
配合[[NAS里面关于docker的部署路径图]]食用


&gt; [!note] ## Docker重要概念

![[Docker-img-240510_212446.png]]


![[Docker-img-240510_225037.png]]
### 镜像 Docker images
- 只读模板，用来创建容器
	- 它包含运行应用程序所需的文件系统和配置，比如代码、依赖、工具、库等。</description><guid isPermaLink="true">https://bannysway.github.io/post/Docker-ji-chu-jiao-cheng.html</guid><pubDate>Sun, 16 Mar 2025 03:31:32 +0000</pubDate></item><item><title>PYTHON基础语法1</title><link>https://bannysway.github.io/post/PYTHON-ji-chu-yu-fa-1.html</link><description>

&gt; [!important] ## 基础知识  




## 输入输出
+ input()函数：
	+ 变量，列表[]， 字符，字符串，
	+ 嵌套函数
		+ int()——转化整数int(input())
		+ ord()——转化ASCII码值 ord(input())
	+ 换行 input('请输入： \n')
+ 
+ 《python速查手册 基础卷》
	+ 需要反复阅读部分：P7~P8，P20，P22自己写一遍
	+ 

## 1.1 print玩法
- 三角形函数
```a,b,c = map(int,input('请输入三角形的三条变长,用空格间隔：').split())

if a+b&gt;c and a+c&gt;b and b+c&gt;a:

    ans = 'can be a triangle'

    if a==b and b==c:

        print('can be a equilateral triangle')

    elif a==b or b==c or a==c:

        print('can be a isosceles triangle')

        if a*a+b*b==c*c or b*b+c*c==a*a or c*c+a*a==b*b:

            print('can be a right triangle')

        else:

            print('can be a triangle')

    else:

        print('can be a normal triangle')

else:

    print('can not be a triangle')
```


+ 如何插入代码块
```
name='ada love &amp; peace'  
```
name='ada love &amp; peace'  
# title 函数是改变首字母大小写  
```
print(name.title())  
```
print(name.title())  
# upper函数是全部改为大写  
```
print(name.upper())  
```
print(name.upper())  
# lower函数是全部改为小写  
```
print(name.lower())  
```
print(name.lower())  
# 在字符串中使用变量,
注意变量赋值要有“”，使用f函数应是“{} {}”的结构，f是format函数的缩写  
```
first_name='ada'  
last_name='lovelace'  
full_name=f'{first_name} {last_name}'  
print(full_name)
print(f'x is {x}, y is {y}, name is {', '.join(name)}, a is {a}, b is {b}')
```
# f函数里面可以插入字符串 
可以嵌套“”的字符串结构，比如“hello”“，' '!'  
```
print(f'Hello, {full_name.title()}!!')  
```
# f字符串来创建消息  
```
message=f'HELLO, {full_name.upper()}! AD.'  
print(message)  
```
# 字符串添加制表位
\t,注意第二个print和第三个print之间的区别，帮助我们了解格式化字符串的应用  
```
message=f'HELLO, {full_name.upper()}! AD &amp; CONGTOU.'  
print(message)  
print('\t message')  
print(f'\t{message}')  
```
  
# 字符串增加\t和\n的变形  
```
print(f'languages:\n
Python\nC\n{message}!')  
print(f'languages:\n\tPython\n\tC\n\t{message}!')  
```
  
# 字符串删除空白，
利用rstrip()可以批量删除空白  
```
favorite_language='python '  
favorite_language=favorite_language.rstrip()  
print(f'\t{favorite_language}!~~~!')  
```
  
# 字符串删除不同的空白形式，
可以采用rstrip，lstrip，strip不同的形式  
```
favorite_language=' python '  
favorite_language=favorite_language.lstrip()  
print(f'\t{favorite_language}!~~~!')  
  
favorite_language=' python '  
favorite_language=favorite_language.rstrip()  
print(f'\t{favorite_language}!~~~!')  
  
favorite_language=' python '  
favorite_language=favorite_language.strip()  
print(f'\t{favorite_language}!~~~!')  
```
  
# 变量反复的赋值和调用非常麻烦，
repr()是Python中的一个内置函数，它返回一个对象的“官方”字符串表示，也就是说，这个字符串表示  
通常可以用来重新创建该对象。</description><guid isPermaLink="true">https://bannysway.github.io/post/PYTHON-ji-chu-yu-fa-1.html</guid><pubDate>Sat, 15 Mar 2025 15:34:57 +0000</pubDate></item><item><title>中国地理知识</title><link>https://bannysway.github.io/post/zhong-guo-di-li-zhi-shi.html</link><description>
 &gt; [!summary] ## 基本概念

- [b] 中国的资源有多么分布不均匀
	- [!] 水资源，80%集中在在南方
	- [!] 煤炭资源，75%集中在山西、内蒙、山西、新疆和贵州
	- [!] 陆地面积资源
		- [“] 25%集中在青藏高原
			- [/] （群峰林立，南迦巴瓦峰（喜马拉雅山脉），加拉白垒峰（唐古拉山脉））
		- ['] 云贵高原遍布石灰岩，溶蚀作用导致地上地下千疮百孔
		- ['] 西北遍布沙滩戈壁，西南遍布高山峡谷
			- [/] 黄土高原，位于太行山以西，秦岭以北，长城以南，是世界最大的黄土堆积区。</description><guid isPermaLink="true">https://bannysway.github.io/post/zhong-guo-di-li-zhi-shi.html</guid><pubDate>Sat, 15 Mar 2025 15:28:40 +0000</pubDate></item><item><title>反向旅游</title><link>https://bannysway.github.io/post/fan-xiang-lv-you.html</link><description>
&gt; [!important] ## 基础知识  


![https://a.zdmimg.com/202407/11/668f85b7ddafb7558.png_fo742.jpg](https://a.zdmimg.com/202407/11/668f85b7ddafb7558.png_fo742.jpg)

1⃣️东极岛

🌈游玩推荐：去东极岛追第一缕曙光，也是《后会无期»拍摄地

📍坐标：浙江舟山

![https://qnam.smzdm.com/202407/11/668f85c39aafc6051.png_e1080.jpg](https://qnam.smzdm.com/202407/11/668f85c39aafc6051.png_e1080.jpg)

2⃣️景德镇

🌈游玩推荐：中国陶瓷博物馆，御窑厂，陶溪川，瑶里古镇

📍坐标：江西景德镇

![https://am.zdmimg.com/202407/11/668f85ccd7b841277.png_e1080.jpg](https://am.zdmimg.com/202407/11/668f85ccd7b841277.png_e1080.jpg)

3⃣️芒市

🌈游玩推荐：勐焕银塔，金塔，傣族古镇，菩提街，三棵树风情街

📍坐标：云南

![https://am.zdmimg.com/202407/11/668f85d2ef2a39243.png_e1080.jpg](https://am.zdmimg.com/202407/11/668f85d2ef2a39243.png_e1080.jpg)

4⃣️丽水

🌈游玩推荐：云和梯田、缙云仙都、古堰画乡、松阳县古村落

📍坐标：浙江丽水

![https://am.zdmimg.com/202407/11/668f85dc6cee81036.png_e1080.jpg](https://am.zdmimg.com/202407/11/668f85dc6cee81036.png_e1080.jpg)

5⃣️霞浦

🌈游玩推荐：四礵列岛，现实版塞尔达中的海拉鲁大陆；海尾角，吕峡灯塔

📍坐标：福建宁德

![https://am.zdmimg.com/202407/11/668f85e5ae0273078.png_e1080.jpg](https://am.zdmimg.com/202407/11/668f85e5ae0273078.png_e1080.jpg)

6⃣️甘南

🌈游玩推荐：神仙居住的地方扎尕那，可以骑马、徒步，同时物价也低。</description><guid isPermaLink="true">https://bannysway.github.io/post/fan-xiang-lv-you.html</guid><pubDate>Sat, 15 Mar 2025 15:23:46 +0000</pubDate></item><item><title>大头侃人：任正非</title><link>https://bannysway.github.io/post/da-tou-kan-ren-%EF%BC%9A-ren-zheng-fei.html</link><description>
# 元数据
&gt; [!abstract] 大头侃人：任正非
&gt; - ![ 大头侃人：任正非|200](https://cdn.weread.qq.com/weread/cover/66/YueWen_34723548/t7_YueWen_34723548.jpg)
&gt; - 书名： 大头侃人：任正非
&gt; - 作者： 于立坤
&gt; - 简介： 一个任正非，半部当代史。</description><guid isPermaLink="true">https://bannysway.github.io/post/da-tou-kan-ren-%EF%BC%9A-ren-zheng-fei.html</guid><pubDate>Sat, 15 Mar 2025 15:19:11 +0000</pubDate></item><item><title>蝶恋花·阅尽天涯离别苦</title><link>https://bannysway.github.io/post/die-lian-hua-%C2%B7-yue-jin-tian-ya-li-bie-ku.html</link><description>
&gt; [!quote] 原文
- 古诗原文：
阅尽天涯离别苦，不道归来，零落花如许。</description><guid isPermaLink="true">https://bannysway.github.io/post/die-lian-hua-%C2%B7-yue-jin-tian-ya-li-bie-ku.html</guid><pubDate>Sat, 15 Mar 2025 15:16:13 +0000</pubDate></item><item><title>开放式基金</title><link>https://bannysway.github.io/post/kai-fang-shi-ji-jin.html</link><description>
&gt; [!info] 重点概念
&gt; 

- 区分净值和累计净值
- 了解购买当下的净值
- 申购和赎回较高的手续费
- 


&gt; [!important] ## 基础知识  

开放式基金的运行模式是采用一种严格的制衡关系。</description><guid isPermaLink="true">https://bannysway.github.io/post/kai-fang-shi-ji-jin.html</guid><pubDate>Sat, 15 Mar 2025 15:03:10 +0000</pubDate></item><item><title>Java项目基础</title><link>https://bannysway.github.io/post/Java-xiang-mu-ji-chu.html</link><description>
&gt; [!summary] 前后端和接口的概念
&gt; Contents


 好的，我现在需要帮用户系统性地理解前端、后端和接口的关系。</description><guid isPermaLink="true">https://bannysway.github.io/post/Java-xiang-mu-ji-chu.html</guid><pubDate>Sat, 15 Mar 2025 14:56:41 +0000</pubDate></item><item><title>苏东坡先生的智慧人生</title><link>https://bannysway.github.io/post/su-dong-po-xian-sheng-de-zhi-hui-ren-sheng.html</link><description>

&gt; [!quote] 着力即差和持志若心痛

“着力即差”和“持志若心痛”这两句话都出自苏轼之口，深刻地体现了他的哲学思想和人生态度。</description><guid isPermaLink="true">https://bannysway.github.io/post/su-dong-po-xian-sheng-de-zhi-hui-ren-sheng.html</guid><pubDate>Sat, 15 Mar 2025 08:05:26 +0000</pubDate></item></channel></rss>