摘要: pycharm使用 集成开发环境IDE Integrated Development Environment 字符格式化输出 for while break continue 数据类型 整数 字符数 列表 元组 购物车程序 字典 三级菜单 阅读全文
posted @ 2020-05-11 17:32 青衣少年 阅读(115) 评论(0) 推荐(0)
摘要: 变量 if else 注释 #注释单行 """ """ 或 ''' '''注释多行 ''' '''还可以表示打印多行 msg = '''hello 1hello 1hello 1hello 1'''print(msg) 结果: hello 1hello 1hello 1hello 1 缩进 制表符 阅读全文
posted @ 2020-05-11 16:07 青衣少年 阅读(101) 评论(0) 推荐(0)
摘要: print("#",end ="") #不换行打印 输出指定行列的图形 第一次试试:hight = int(input("请输入高:")) width = int(input("请输入宽:"))ks_hight = 1 while ks_hight <= hight: ks_width = 1 wh 阅读全文
posted @ 2020-05-11 15:26 青衣少年 阅读(351) 评论(0) 推荐(0)