- 1 小时 SQL 极速入门(一)
- 1 小时 SQL 极速入门(二)
- 1 小时 SQL 极速入门(三)
- SQL 高级查询——(层次化查询,递归)
- GROUP BY高级查询,ROLLUP,CUBE,GROUPPING详解
- SQL 行转列,列转行
injetlee / python Goto Github PK
View Code? Open in Web Editor NEWPython脚本。模拟登录知乎, 爬虫,操作excel,微信公众号,远程开机
Python脚本。模拟登录知乎, 爬虫,操作excel,微信公众号,远程开机
1.Hi Developers im new to coding. i tried to make this video uploading app to my firebase storage but im not that good at coding so im stuck at this problem. when upload button is pressed the filechooser is opened and if i select a file it gets uploaded to the firebase But if i cancel and close the filechooser it gives an error.
2. i am unaware if this file chooser works on android or nor...if it does not please help me with this code too. im stuck on this since 6 January ,thats how poor i am.
from kivy.app import App
from kivy.lang import Builder
kv = '''
<MainScreen>:
name: 'mainscreen'
MDLabel:
id:username_info
text:'Hello Main'
font_style:'H1'
halign:'center'
MDFloatLayout:
id:floate
Video:
id:vid
MDToolbar:
title: 'Bottom navigation'
md_bg_color: .2, .2, .2, 1
specific_text_color: 1, 1, 1, 1
MDBottomNavigation:
panel_color: 1,1,1,1
MDBottomNavigationItem:
name: 'screen 1'
text: 'Home'
icon: 'home-outline'
MDRaisedButton:
id:upload
text:'Upload'
pos_hint:{'center_x':.5, 'center_y':.4}
on_release:
app.file_chooser()
upload.disabled=False
'''
class goodApp(MDApp):
def build(self):
self.strng = Builder.load_string(help_str)
self.url = "link.json"
return self.strng
def file_chooser(self):
filechooser.open_file(on_selection=self.selected)
def selected(self,selection):
config={
'Api keys of firebase'
}
firebase=pyrebase.initialize_app(config)
storage=firebase.storage()
Directory=selection[0]
Name=re.findall('[ \w-]+\..*',Directory)
loginEmail = self.strng.get_screen('loginscreen').ids.login_email.text
storage.child(str(f"{loginEmail}")).child(str(f"{Name}")).put(str(f"{Name[0]}"))
if selection==True:
self.root.ids.vid.source=firebase
self.strng.get_screen('mainscreen').ids.upload.disabled=True
self.strng.get_screen('mainscreen').manager.current ='uploadscreen'
self.strng.get_screen('mainscreen').manager.transition.direction='left'
if selection==False:
self.strng.get_screen('mainscreen').ids.upload.disabled=False
if __name__ == '__main__':
goodApp().run()
[INFO ] [Logger ] Record log in C:\Users\Dheeraj.kivy\logs\kivy_22-01-19_1.txt
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at "C:\Users\Dheeraj\AppData\Roaming\Python\Python38\site-packages\kivy_init_.py"
[INFO ] [Python ] v3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\Dheeraj\AppData\Local\Programs\Python\Python38\pythonw.exe"
[INFO ] [Factory ] 186 symbols loaded
[INFO ] [KivyMD ] 0.104.2, git-bc7d1f5, 2021-06-06 (installed at "C:\Users\Dheeraj\AppData\Local\Programs\Python\Python38\lib\site-packages\kivymd_init_.py")
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <b'2.1 Mesa 10.0.2 (git-675cd84)'>
[INFO ] [GL ] OpenGL vendor <b'VMware, Inc.'>
[INFO ] [GL ] OpenGL renderer <b'Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)'>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <b'1.30'>
[INFO ] [GL ] Texture max size <8192>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [KivMob ] init called.
[WARNING] [KivMob ] Ads will not be shown.
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Video ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
[INFO ] [Base ] Start application main loop
Traceback (most recent call last):
File "C:\Users\Dheeraj\AppData\Roaming\Python\Python38\site-packages\plyer\platforms\win\filechooser.py", line 102, in run
self.fname, _, _ = win32gui.GetOpenFileNameW(**args)
pywintypes.error: (0, 'GetOpenFileNameW', 'No error message is available')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Dheeraj\AppData\Roaming\Python\Python38\site-packages\plyer\platforms\win\filechooser.py", line 108, in run
self._handle_selection(self.selection)
File "C:\Users\Dheeraj\Desktop\kivy codes\priyanshu doraming\Magenta.py", line 949, in selected
Directory=selection[0]
IndexError: list index out of range
[INFO ] [Base ] Leaving application in progress...
Add images to explain us this bug. Paste urls here.
Remove this section if no images here
居然那么多start
good database
pip3上并没有这样的库,楼主如何引入的?
爬取‘’评分‘’这一步有问题,试着输出star_num,结果为None,不知道是不是字符问题,未匹配“评分”字段
File "F:/github/Python-1/countFile.py", line 5
SyntaxError: Non-ASCII character '\xe9' in file F:/github/Python-1/countFile.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
我认为调用get_all函数后再打印文件数比较好,作者没必要在每次循环都打印,毕竟是一个统计的行为
拉勾做了防爬虫处理了
编译成二进制文件
.
营销号都跑到github了
国内访问不了是吗?是要翻墙吗
WATT iS THAT ~ SORCELERY [ ASKiNG MOO WA to Leave a Comment... WATT ARE YOU; Gorged OUT OF YOU Tree; WHY iN The NAME OVAL'iTTER F would ME Leave ME Candy FoR YOU... iN SUCH A PLAK that ME CAN START complaining about you & make play_do wit it... that's wrong but ➡️ GO JOU WET WiT POT A MOW DEALER & HUGUETTE WHAT YOU BEEN EXPECTiNG ⬅️ MY KiND OFF LEE GUM to 🍃... on PiRPUSS
好像都没用
Hell
Hola
J
拉勾网站职位信息的url超时错误
知乎登录改版,目前登录需要一个 signature 是在 js 里动态生成了,自己解决不了,博主打算更新一篇吗?
这句代码的正则表达式有问题,不知你们测试没有!匹配不到内容
star_num = star.find(text=re.compile('评价')) # 评价
匹配的内容:
<span class="playable">[可播放]</span>
</div>
<div class="bd">
<p class="">
导演: 莱塞·霍尔斯道姆 Lasse Hallström 主演: 理查·基尔 Richard Ger...<br>
2009 / 美国 英国 / 剧情
</p>
<div class="star">
<span class="rating45-t"></span>
<span class="rating_num" property="v:average">9.2</span>
<span property="v:best" content="10.0"></span>
<span>504045人评价</span>
</div>
<p class="quote">
<span class="inq">永远都不能忘记你所爱的人。</span>
</p>
</div>
</div>
</div>
</li>
如题
#my first calculator code
print('Calculator code')
print('---------------------------')
a=int(input('Enter first number: '))
b=input('Enter +,-,/,: ')
c=int(input('Enter second number: '))
if(b=='+'):
print(a+c)
elif(b=='-'):
print(a-c)
elif(b=='/'):
print(a/c)
elif(b==''):
print(ac)
else:
print('insert +,-,/, sign')
with open('pic/{}/{}'.format(text, link.split('/')[-1]), 'wb') as f:
应该是
with open('pic/{}/{}'.format(text, pic_link.split('/')[-1]), 'wb') as f:
怎么回事,麻烦解决下
谢
def get_access_token(appid, secret):
'''获取access_token,100分钟刷新一次'''
url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={}&secret={}'.format(appid, secret)
r = requests.get(url)
parse_json = json.loads(r.text)
global token
token = parse_json['access_token']
global timer
timer = threading.Timer(6000, get_access_token) //这地方没有传参数。
timer.start()
博主准备更新一个换ip爬取吗?想知道哪里可以爬取大量可用ip
……
First program
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.