#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @File : input函数.py @Author : lichao @Date : 2024/11/19 15:36 @Software : PyCharm """ # input() 函数用于接收用户输入的数据,返回值为字符串类型。 name = input('请输入姓名:') age = input('请输入年龄:') print(f'姓名:{name},年龄:{age}')