def make_car(manufacturer,model,**type_info):
"""创建一个字典,其中包含我们知道的有关用户的一切"""
profile = {}
profile['manufacturer'] = manufacturer
profile['model'] = model
for key,value in type_info.items():
profile[key] = value
return profile
car = make_car('subaru','outback',color = 'blue',tow_package = True)
print(car)
阅读全部
|
GunL
贴于 2021年7月6日 21:35
hide
bbsi
magicians = ['ergou','qiqi','shitou']
great_magicians = []
def make_great(magicians,great_magicians):
while magicians:
magician = magicians.pop()
great_magician = 'the Great' + magician
great_magicians.append(great_magician)
def show_magicianslis(great_magicians):
for name in great_magicians:
print(name)
......................
阅读全部
|
GunL
贴于 2021年7月6日 21:33
hide
bbsi
magicians = ['ergou','qiqi','shitou']
great_magicians = []
def make_great(magicians,great_magicians):
while magicians:
magician = magicians.pop()
great_magician = 'the Great' + magician
great_magicians.append(great_magician)
def show_magicianslis(great_magicians):
for name in great_magicians:
print(name)
......................
阅读全部
|
GunL
贴于 2021年7月6日 21:32
hide
bbsi
def milk_album(name,album_name,number=''):
album = {'name':name,'album_name':album_name}
return album
while True:
print("(enter 'q' at any time to quit)")
name = input("请输入歌手名:")
if name == 'q':
break
album_name = input("请输入专辑名:")
if album_name == 'q':
break
print(milk_album(name,album_name))
阅读全部
|
GunL
贴于 2021年7月6日 21:29
hide
bbsi
places = {}
polling_active = True
while polling_active:
name = input("\n What is your name? ")
response = input("If you could visit one place in the world, where would you go?")
places[name] = response
repeat = input("Would you like to let another person respond? (yes/ no) ")
if repeat == 'no':
polling_active = False
print("\n--- Poll Results ---")
......................
阅读全部
|
GunL
贴于 2021年7月6日 21:20
hide
bbsi
var bus_station=["A","B","C","D","E"];
var arr_name_id=[];
var arr_name=[];
var arr_from_address=[];
var arr_from_time=[];
var arr_to_time=[];
var arr_to_address=[];
function up_bus(id,name,address,time){
arr_name_id.push(id);
......................
阅读全部
|
dwzh
贴于 2021年7月6日 09:56
hide
bbsi
function QQSpeed_Common() {
this.版本 = "2021/06/01"
this.UI = Object()
this.批量关闭 = function () {
Api.Shell("taskkill /f /t /im GameApp.exe", 0)
Api.Shell("taskkill /f /t /im QQSpeed_loader.exe", 0)
}
this.清理进程 = function () {
var WMI = GetObject("WinMgmts:")
var wind = ['"IIPSHostApp.exe"', '"QQSpeedChatBrowser.exe"', '"QQSpeedCefProcess.exe"']
var n = WMI.ExecQuery('select * from win32_process where name=' + wind.join('or name=')).Count
for (var i = 0; i < wind.length; i++) {
......................
阅读全部
|
angelfly
贴于 2021年6月1日 12:07
hide
bbsi
#include<stdio.h>
enum {false, true};
int main() {
int i = 1;
for( i = 0; i <= 5; i++ ) {
if( i == 3 ) {
continue;
}
printf("rrtrt %d \n",i);
}
......................
阅读全部
|
asscode
贴于 2021年5月21日 02:54
hide
bbsi
function Control_Class() {
MsgBox = function (lpText, wType, lpCaption) {
Api.ECall("User32.dll", "MessageBoxW", 0, (lpText || "").toString(), (lpCaption || "").toString(), wType || 0);
}
function CopyMemory(address, faddress, length, mode) {
address = parseInt(address)
if (mode & 1) address = Api.VarPtr(address) + 8
if (typeof faddress == "string") {
var Str = Api.Malloc()
Str.FromString = faddress
Api.ECall("kernel32.dll", "RtlMoveMemory", address, Str.GetPtr(0), length || Str.Size + 1)
// Str = null
......................
阅读全部
|
angelfly
贴于 2021年5月19日 19:48
hide
bbsi