1.print输出分割:
user_name = ‘Charlie‘ user_age = 8 #同时输出多个变量和字符串 print("读者名:" ,user_name,"年龄:",user_age,sep=‘|‘)
得到下面的结果:
读者名:|Charlie|年龄:|8
python小方法
原文:https://www.cnblogs.com/xiaoyuxixi/p/14652432.html