LianShuo's blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

Python输入

一. 输入在Python中,程序接收用户输入的数据的功能即是输入。 1.2 输入的语法1input("提示信息") 1.3 输入的特点 当程序执行到input,等待用户输入,输入完成之后才继续向下执行。 在Python中,input接收用户输入后,一般存储到变量,方便使用。 在Python中,input会把接收到的任意用户输入的数据都当做字符串处理。 12345passwo
2023-01-14
Python
#Python #输入

Python输出

输出作用:程序输出内容给用户 123456print('hello Python')age = 18print(age)# 需求:输出“今年我的年龄是18岁” 一. 格式化输出所谓的格式化输出即按照一定的格式输出内容。 1.1 格式化符号 格式符号 转换 ==%s== 字符串 ==%d=&#
2023-01-14
Python
#Python #输出

Python注释

注释的分类及语法注释分为两类:==单行注释== 和 ==多行注释==。 单行注释 只能注释一行内容,语法如下: 1# 注释内容 多行注释 可以注释多行内容,一般用在注释一段代码的情况, 语法如下: 1234567891011""" 第一行注释 第二行注释 第三行注释"&
2023-01-14
Python
#Python #注释

article title

这是一级标题这是一张图片 这是二级标题这是一串代码 1for i in arry[1,2,3,4,5] 这是三级标题就到这吧
2023-01-13

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick
2023-01-13
1234

搜索

Hexo Fluid