#格式化输出
age = 18;
print("我的名字是%s, 我的国籍是%s"%("小张","中国"));
print("我的年纪:%d"%age);
print("aaa", "bbb", "ccc");
print("www", "baidu", "com", sep = ‘.‘);
print("hello", end = "");
print("world", end = "\t");
输出内容如下

#python 的输入
x = input("输入一个数字"); #py中 input 默认输入的是字符串类型
print(x);
#如果想要输入的是数字,那么可以强制类型转换
x = int(input());
x = x + 100;
print(x);
#算术运算符
** 幂-返回 x 的 y 次幂
// 取整除-向下取接近除数的整数
原文:https://www.cnblogs.com/ccut-ry/p/13834379.html