# -*- coding: utf-8 -*- ''' Welcome to LearnPython.NET File Name: PDataType.py Download from:https://www.learnpython.net/cn/python-code-samples.html Author: LearnPython.Net Editor: CoderChiu ''' #定义一个字符串,表示名字; strName = "Qiu Hongtao" #定义一个数字,表示年龄; nAge = 38 #定义一个布尔值,表示是否结婚; bMarriage = True #定义一个数字,表示裤兜里有多少钱; fMoney = 3.5 print("I am %s, I am %d years old, I have %f Yuan." %(strName, nAge, fMoney))