自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 python之函数入门

整个专栏皆为《笨办法学python3》的学习内容,只是在书本的内容上根据本人的学习进行的记录,方便之后的回顾。 1、函数的基本结构 def function_name(in_put): content return output 这里的input和output可以是打包后的东西,打包解包让函数看起来更加简洁。比如: def function_name(*in_put): input1,input2=in_put content return output pyth

2021-02-02 17:50:16 160

原创 python读写文件

open函数 open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) Open file and return a stream. Raise OSError upon failure. file is either a text or byte string giving the name (and the path if th

2021-01-28 22:33:09 203

原创 python参数输入(input&argv)

input函数 input(prompt=None, /) Read a string from standard input. The trailing newline is stripped. The prompt string, if given, is printed to standard output without a trailing newline before reading input. If the user hits EOF (*nix: Ctrl-D, Windows: Ct

2021-01-28 13:05:22 1717 1

原创 python之print

print(a+b)&print(a*5) 案例1 a = 1 b = 2 print(a+b) print(a,b) c = "one" d = "two" print(c+d) print(c,d) e = "haha" print(e*5) 输出 3 1 2 onetwo one two hahahahahahahahahaha 案例2 f = "alpha!" g = " alpha!" h = "\talpha!" i = "\nalpha!" print(f) print(g)

2021-01-27 22:46:37 853 1

原创 python格式化字符记录

案例1 topic = 'monkey' print(f"let's talk about {topic}.") 输出 let’s talk about monkey. 案例2 A = "apple" B = "banana" y = f"{A} and {B}" print(y) 输出 apple and banana 案例3 hilarious=False joke_evaluation = "Isn't that joke so funny?! {}" print(joke_evaluation

2021-01-27 22:24:42 144

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除