2019年12月9日

摘要: Django通过正则跳转查看详细信息页面 Django通过正则跳转查看详细信息页面 python views视图 USER_DICT = { '1':{'name':'root1','email':'root@123'}, '2':{'name':'root2','email':'root@123' 阅读全文
posted @ 2019-12-09 22:05 柳条儿 阅读(202) 评论(0) 推荐(0) 编辑

2019年10月28日

摘要: os os¶ 对操作系统的调用,模拟对操作系统的一些操作指令 os常用操作¶ 导入模块 In [14]: import os os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 In [5]: os.getcwd() Out[5]: '/root/note' os.chd 阅读全文
posted @ 2019-10-28 15:46 柳条儿 阅读(225) 评论(0) 推荐(0) 编辑
摘要: random random¶ 取随机数 取一个随机浮点数。 In [2]: import random random.random() Out[2]: 0.9896051007555908 在1-3取一个随机数数(整型)。 In [6]: a=random.randint(1,3) b=random 阅读全文
posted @ 2019-10-28 11:24 柳条儿 阅读(130) 评论(0) 推荐(0) 编辑
摘要: random 取随机数 取一个随机浮点数。 0.9896051007555908 在1 3取一个随机数数(整型)。 3 1 2 在序列中随机取一个元素。 e l l 在序列中随机取一个元素,指定元素的个数。 ['l', 'h'] ['l', 'l'] ['e', 'h'] 打乱一个有序列表 [5, 阅读全文
posted @ 2019-10-28 09:58 柳条儿 阅读(323) 评论(0) 推荐(0) 编辑

2019年9月19日

摘要: [toc] 要求 画图内容 操作 题1 标注尺寸 打开标注样式 选择standard,点击置为当前 注意:标注尺寸先标记直线再标半径。 选择标注 线性 标注前先切换好图层 然后开始标注 继续标注 标注文字,标注完后输入 然后输入 标注文字位置不对可进行拖拽到适合的位置 接下来标注圆的直径和半径 操作 阅读全文
posted @ 2019-09-19 16:37 柳条儿 阅读(554) 评论(0) 推荐(0) 编辑

2019年9月18日

摘要: 要求 图形 阅读全文
posted @ 2019-09-18 17:33 柳条儿 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1. 选中偏移工具。 2. 输入偏移的距离,然后回车。 3.鼠标左击需要偏移的对象。 4.鼠标左击对象的上下左右的区域,产生相对于应得偏移。 阅读全文
posted @ 2019-09-18 16:35 柳条儿 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 甲:下午好,你的女儿怎么了? Good afternoon,How about your daughter? 乙:李医生,下午好。我女儿看起来很糟糕。她头痛和胃痛。 doctor Li,Good afternoon.My daughter looks terrible.she has a heada 阅读全文
posted @ 2019-09-18 15:28 柳条儿 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 甲:打扰一下,你是李医生吗? Excuse me,are you doctor Li? 乙:是的,我是。 Yes,I'm. 甲:我是汤姆,Lucy的爸爸。我女儿今天感觉不舒服。您能看看她么? I'm tom,Lucy' dad. my daughter doesn't fell good today 阅读全文
posted @ 2019-09-18 15:24 柳条儿 阅读(127) 评论(0) 推荐(0) 编辑

2019年9月15日

摘要: dict = {'Alice': '2341', 'Beth': '9102', 'Cecil': '3258'} dict1 = { 'abc': 456 } dict2 = { 'abc': 123, 98.6: 37 } print(dict) print(dict1) print(dict2) {'Alice': '2341', 'Beth': '9102', 'Cecil': & 阅读全文
posted @ 2019-09-15 06:29 柳条儿 阅读(224) 评论(0) 推荐(0) 编辑

导航