-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.py
More file actions
39 lines (35 loc) · 745 Bytes
/
Test.py
File metadata and controls
39 lines (35 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
# @Time : 2017/5/12 22:08
# @Author : set3rnal
# @Site :
# @File : Test.py
# @Software: PyCharm
# 扩展欧几里得算法求二元一次方程
# import json
#
# data = [{'a': 1, 'b': 2, 'c': 3}]
# json = json.dum
try:
fp = open('F://pic/WAV/ES.png', 'wb')
print 'Ok!'
fp.close()
except Exception,e:
print 'No such file'
# code = str[::-2]
# result = ''
# for i in code:
# ss = ord(i) - 1
# result += chr(ss)
#
# print result[::-2]
# def ext_euclid(a, b):
# if (b == 0):
# return 1, 0, a
# else:
# x, y, q = ext_euclid(b, a % b)
# x, y = y, (x - (a // b) * y)
# return x, y, q
#
#
# if __name__ == '__main__':
# print ext_euclid(1749, 0)