如何让玩家登陆平台

时间:2019-05-30 11:10:59

标签: python pygame

每当我使玩家从地面跳到一个方块(砖块)上时,它只是跳跃而没有降落在那个方块(砖块)上,我尝试了以下代码,

import requests
from bs4 import BeautifulSoup

with open('file.js') as s:
    source= s.read()
cookies = {
    'PHPSESSID': 'foln2l1v1564o66vmbs19mk0j1',
}

headers = {
    'Connection': 'keep-alive',
    'Cache-Control': 'max-age=0',
    'Origin': 'https://www.cleancss.com',
    'Upgrade-Insecure-Requests': '1',
    'Content-Type': 'application/x-www-form-urlencoded',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
    'Referer': 'https://www.cleancss.com/javascript-obfuscate/index.php',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'en-US,en;q=0.9,ta;q=0.8',
}

data = {
  'ascii_encoding': '62^',
  'fast_decode': 'on^',
  'src': source
}

response = requests.post('https://www.cleancss.com/javascript-obfuscate/index.php', headers=headers, cookies=cookies, data=data)


soup=BeautifulSoup(response.text,'lxml')
with open('file2.js') as f:
    print(soup.select('#packed')[0].text,file=f)

有人可以帮我解决这个问题

预先感谢

0 个答案:

没有答案