• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






不知道名字

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页

2019年1月26日

python 类型的使用
摘要: 实例一: print(499*561+10620-365)print((5025-525)/100+18*17) 结果: print(499*561+10620-365)print((5025-525)/100+18*17) 实例二:浮点数 print(0.55+0.3) 结果: bash:81$ 阅读全文
posted @ 2019-01-26 16:16 不知道名字 阅读(729) 评论(0) 推荐(0)
 
python print实例
摘要: import randomimport time ###提示语部分print('你好,我是机器人小埋,我们来玩个猜年龄的小游戏吧~(◆◡◆)')time.sleep(2) print(''' 干物妹!うまるちゃんの年齢 ''')time.sleep(1) print('小埋的真实年龄在1到10之间哦 阅读全文
posted @ 2019-01-26 15:35 不知道名字 阅读(575) 评论(0) 推荐(0)
 
python 角色攻击游戏
摘要: 在编程界,有一句话非常出名,叫“Talk is cheap, show me the code.”——空谈无益,秀代码。我们现在从print()函数开始,先试着自己写下一行代码吧! main.py import time,random # 需要的数据和变量放在开头player_list = ['【狂 阅读全文
posted @ 2019-01-26 15:02 不知道名字 阅读(1238) 评论(0) 推荐(0)
 
python 文字 识别+python 错误: ModuleNotFoundError: No module named 'request'
摘要: import requestfrom aip import AipOcr image = requests.get('https://static.pandateacher.com/7b5d6d8d9dea5691705d04fef2306b52.png').content APP_ID = '11 阅读全文
posted @ 2019-01-26 14:57 不知道名字 阅读(3200) 评论(0) 推荐(0)
 
python 函数def
摘要: 一、不同层级的调用 import countcount.add(2,3)print (count.add(2,3)) 在不同层级引用函数,不能直接引用,否则会报错: import countModuleNotFoundError: No module named 'count' 可采用软添加方式 c 阅读全文
posted @ 2019-01-26 14:48 不知道名字 阅读(526) 评论(0) 推荐(0)
 
python2与python3的区别
摘要: 1、python3 执行print时会报错 >>> print "fdsf"SyntaxError: Missing parentheses in call to 'print'. Did you mean print("fdsf")?>>> SyntaxError: Missing parenth 阅读全文
posted @ 2019-01-26 14:47 不知道名字 阅读(176) 评论(0) 推荐(0)
 
python3 try异常 断言assert
摘要: try: f = open("hello1.txt",'r') except Exception as e: print (e) try: print (a)except Exception as e: print(e) raise抛出一个自定义异常,抛出的异常类型必须是python内的类型。 断言 阅读全文
posted @ 2019-01-26 14:46 不知道名字 阅读(3110) 评论(0) 推荐(1)
 

2019年1月25日

python3 基础命令
摘要: 一、print print ("test") #直接打印内容 name = "zhangsan"age = 28 '''此为注释,可单引号,也可双引号,''' print (name) #打印变量内容print (type(name)) #打印变量的类型print (type(age))print 阅读全文
posted @ 2019-01-25 22:39 不知道名字 阅读(1259) 评论(0) 推荐(0)
 
selenium 执行driver = webdriver.Firefox()时报错解决方案
摘要: 执行driver = webdriver.Firefox()时报错如下: Traceback (most recent call last): File "D:/Python27/baidu.py", line 2, in <module> driver = webdriver.Firefox() 阅读全文
posted @ 2019-01-25 16:53 不知道名字 阅读(14343) 评论(0) 推荐(0)
 
selenium报错ImportError No module named selenium
摘要: 方法/步骤 可以看到的是运行的代码的提示为找不到为selenium文件。 首先的需要从官网进行下载selenium的文件。 下载完成之后,把文件进行放入python安装路的lib/site-packages文件夹下。 然后使用cmd的进行cd /进入到c盘当中。 进入到了c盘之后,切换site-pa 阅读全文
posted @ 2019-01-25 10:37 不知道名字 阅读(4470) 评论(0) 推荐(0)
 
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页