duangsuse Throws
98 subscribers
3.41K photos
228 videos
100 files
2.75K links
没事乱水...
Author @duangsuse

©2016 No rights reserved. 🐃

🐶🌚🍎🏠💓💔👇
😔 🙇‍♂️🙌🚶‍♂️🏃‍♂️ 🏃‍♂️🚶‍♂️ 👆

🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
@dsuse
Download Telegram
from re import compile
from urllib.parse import unquote

PAT_URL_PARAMS = compile(r"[?|&]([^=]+)=([^&;#]+)")
def parseURLParameters(text):
return dict((k, unquote(v)) for (k, v) in PAT_URL_PARAMS.findall(text))


class PolitiScalesResult:
SV_MAX = 8
SV_CONSTR, SV_JUDICAL, SV_PROGRESS, SV_INTERNAT, SV_COMMUNISM, SV_NORMATISM, SV_ECO, SV_REVLOUTION = range(0, SV_MAX)
names = "constr,judical,progress,internat,communism,normatism,eco,revolution".split(",")
shorthandNames = dict(zip("cjsbpmet", names))
nameIndices = dict(zip(names, range(0, SV_MAX)))
def __init__(self, prag, **kwargs):
self.prag, self.values = prag, list(0 for _ in range(self.SV_MAX))
for (name, v) in kwargs.items(): self.values[self.nameIndices[name]] = v
def __repr__(self):
text = ",".join(f"{name}={self.values[i]}" for (name, i) in self.nameIndices.items())
return f"PolitiScalesResult({self.prag}, {text})"
@staticmethod
def parse(text):
cfg = parseURLParameters(text)
prag = cfg.pop("prag")
values = {name: tuple(int(cfg[i]) for i in [f"{s}0", f"{s}1"]) for (s, name) in PolitiScalesResult.shorthandNames.items()}
return PolitiScalesResult(prag, **values)

def get(self, index): return self.values[index]
def subset(self, part):
f = (lambda t: 100 - sum(t)) if part == 3 else lambda t: t[part]
return map(f, self.values)

from matplotlib import pyplot as plot

from matplotlib.font_manager import FontProperties

fntprop = FontProperties()
fntprop.set_name("WenQuanYi Zen Hei")

然后只能做一些基本的 #Python 分析

a = PolitiScalesResult.parse("?j0=33&j1=40&t1=40&t0=29&m1=24&m0=48&c1=52&c0=14&e0=43&e1=24&b0=52&b1=17&p1=45&p0=24&prag=67&s0=40&s1=33")
b = PolitiScalesResult(67, constr=(19,47), judical=(17,57), progress=(36,26), internat=(14,52), communism=(14,74), normatism=(45,24), eco=(31,64), revolution=(17,48))


plot.xlabel(" / ".join("社会科学 司法 进步 国际化 共产化 规范化 生态化 革命".split(" ")), fontproperties=fntprop)
plot.plot(a.values)
plot.plot(b.values)
plot.legend("AaBb")
🤔 奇奇怪怪的感觉,就不画了,睡大觉。
#bilibili 草,这就是后浪的选择权和多元文化
This media is not supported in your browser
VIEW IN TELEGRAM
瞄到那个马赛克糊了一大片,忽然觉得自己好羞愧,仿佛看到了什么不该看的东西
嗯,现在「 合法化 」了,我不知道这是法制的进步,还是自由的倒车
实际上,任何时候合法化和无法律支持都会造成不同的问题,从某种意义上而言,这或许算是国内已有"那个大家都懂的"制度的推进吧。
This media is not supported in your browser
VIEW IN TELEGRAM
医务工作者们辛苦了!
投稿By:Ranor H

记得老实在家呆着,除非想被抬棺🤨
Stay at home, or dance with us🕴🏿⚰️🕴🏿
#专业团队
Forwarded from 洛希极限
垃圾车运猪肉微博都要亡国了,垃圾车运发臭尸体居然鸦雀无声,可能某种程度上还是太低估了美国人的韭性。