![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 59
yyf248630
这个作者很懒,什么都没留下…
展开
-
【Flask专题】12.模板-循环loop和宏(PyCharm)
模板-循环loop和宏(PyCharm)原创 2022-05-13 15:34:23 · 908 阅读 · 0 评论 -
【Flask专题】11.模板-继承(PyCharm)
模板-继承(PyCharm)原创 2022-05-10 17:00:19 · 505 阅读 · 0 评论 -
【Flask专题】10.模板-过滤(PyCharm)
模板-过滤原创 2022-05-10 10:11:44 · 316 阅读 · 0 评论 -
【Flask专题】09.模板:变量(PyCharm)
模板:变量(PyCharm)原创 2022-05-09 21:04:03 · 328 阅读 · 0 评论 -
【Flask专题】08.请求对象request(PyCharm)
请求对象request(PyCharm)原创 2022-05-08 19:30:48 · 428 阅读 · 0 评论 -
【Flask专题】06.url_for():路由反向解析(PyCharm)
url_for():路由反向解析(PyCharm)原创 2022-05-08 17:31:34 · 274 阅读 · 0 评论 -
【Flask专题】05.路由和视图函数(PyCharm)
路由和视图函数(PyCharm)原创 2022-05-08 17:25:37 · 913 阅读 · 1 评论 -
【Flask专题】07.响应对象response(PyCharm)
响应对象response(PyCharm)原创 2022-05-08 08:22:14 · 796 阅读 · 0 评论 -
【Flask专题】04.设置Flask项目为开发环境(PyCharm)
设置Flask项目为开发环境(PyCharm)原创 2022-05-06 14:09:50 · 1110 阅读 · 0 评论 -
【Flask专题】03.PyCharm创建Flask项目(手动)
PyCharm创建Flask项目(手动搭建)原创 2022-05-06 10:46:35 · 349 阅读 · 0 评论 -
【Flask专题】02.PyCharm中使用已创建的虚拟环境
PyCharm中使用已创建的虚拟环境原创 2022-05-05 13:18:25 · 393 阅读 · 0 评论 -
【Flask专题】01.虚拟环境(virtualenvwrapper)的安装和使用
虚拟环境(virtualenvwrapper)的安装和使用原创 2022-05-05 09:43:57 · 773 阅读 · 0 评论 -
Python基础---异常
例1 多个异常 def exception_v1(): try: num1 = int(input("请输入被除数:" )) num2 = int(input("请输入除数: ")) print("商为:" + str(num1/num2)) except ValueError as err: print("请...原创 2019-08-15 22:02:53 · 130 阅读 · 0 评论 -
Python基础---文件的读写
例1 将字符串写入指定文件中def main(): # 打开桌面文件name.txt(如果该文件不存在,则创建;如果已存在,则删除文件内容),创建文件对象file_1 file_1 = open(r'C:\Users\yyf24\Desktop\name.txt', 'w') # 将字符串写入文件中 file_1.write('Zoe\n') file_...原创 2019-08-07 22:14:57 · 372 阅读 · 0 评论 -
Python基础---如何运行Python程序?(How to Excute a python programe?)
如何运行Python程序?(How to Excute a python programe?)一些概念(Concept)Python InterpreterThe Python interpreter can run Python programs that are saved in files or interactively execute Python statements ...原创 2019-06-24 23:52:52 · 517 阅读 · 0 评论 -
Python基础---output【print()】
一、 输出字符串1. 一般字符串>>> print("My name is Pegga!") My name is Pegga! 2. 输出带单引号(’)的字符串方法一:>>> print("I'm Pegga!") I'm Pegga! 方法二:>>> print('I\'m Pegga!')I'm Peg...原创 2019-06-27 22:41:13 · 8388 阅读 · 0 评论 -
Python基础---Input【input()】
input()一般格式>>> name = input("What's your name? ")What's your name? Pegga>>> print(name)Pegga注意input()返回字符串格式(The input function always returns the user’s input as a string...原创 2019-07-09 20:03:01 · 189 阅读 · 0 评论 -
PYTHON CRASH COURSE【Project2: Data visualization】跟随学习---Installing matplotlib
Some ConceptsData visualizationexploring data through visual representationsdata mininguses code to explore the patterns and connections in a data seta data seta small list of numb...原创 2019-07-10 07:50:11 · 191 阅读 · 0 评论 -
Python基础---Comments(注释)
ConceptComments are notes of explanation that document lines or sections of aprogram.Comments are part of the program, but the Python interpreterignores them. They are intended for people who may ...原创 2019-06-30 21:59:48 · 2623 阅读 · 0 评论 -
Python基础---数字与数学运算知识点整理
Some Conceptsoperand操作数、运算数Python Math Operators# This program gets an item's original price and calculates its sale price,with a 20% discount.# Get the item's original price.origi...原创 2019-07-15 19:21:30 · 310 阅读 · 0 评论 -
Python基础---Breaking Long Statements into Multiple Lines(代码分行)
using the line continuation character, which is a backslash ().>>> result = 1 + 2 + 3 + 4 \ + 5>>> using parentheses ()result = (1 + 2 + 3 + 4 + 5)print(result)...原创 2019-07-15 19:29:06 · 138 阅读 · 0 评论 -
Python基础---Escape Characters(转义字符串)
常见的转义字符串参考文献[1] Tony Gaddis,Starting Out with Python[M],United Kingdom: Pearson,2019原创 2019-07-23 19:35:54 · 1580 阅读 · 0 评论 -
Python基础---Formatting Numbers(对数字格式化)
保留小数点后几位e.g.>>> print(format(1.23456, '.2f'))1.23• The .2 specifies the precision. It indicates that we want to round the number to two decimal places.• The f specifies that the data t...原创 2019-07-23 20:08:17 · 718 阅读 · 0 评论 -
Python基础---Constants(常量)
A named constant is a name that represents a value that cannot bechanged during the program’s execution.e.g.INTEREST_RATE = 0.072原创 2019-07-23 20:13:27 · 6089 阅读 · 0 评论 -
Turtle Graphics
Turtle graphics is an interesting and easy way to learn basic programming concepts. The Python turtle graphics system simulates a “turtle” that obeys commands to draw simple graphics.import the tur...原创 2019-07-24 08:13:10 · 1012 阅读 · 0 评论 -
Python基础---Variable(变量)
Some TermsTerms解释Variable标识符the Variable Name标识符Variable Naming Rules(变量命名规则)不能使用python关键字(no key words)不能有空格(no spaces)必须以字母或者_开头可以包含字母、数字和_区分大小写见名知意分割标识符下划线分割驼峰命名(the c...原创 2019-07-08 19:38:10 · 13475 阅读 · 0 评论