2. 从控制台输入用户的月薪,进行运算计算出年薪。打印输出用户的年薪
3. 使用字符串复制,用计算机打印出“爱你一百遍”,打印 100 次
4. 将”to be or not to be”字符串倒序输出
5. 将”sxtsxtsxtsxtsxt”字符串中所有的 s 输出
6. 判断如下输出结果,并文字解释原因:
>>> a = "abd_33"
>>> b = "abd_33"
>>> c = "dd#"
>>> d = "dd#"
>>> a is b #输出 true or false?
>>> c is d #输出 true or false?
7. 写出如下代码打印的结果:
>>> c = "名字是{name},年龄是{age}"
>>> c.format(age=19,name='高淇')